[From nobody Sat Sep  5 19:51:06 2026
Received: (at submit) by bugs.debian.org; 26 Nov 2009 23:14:34 +0000
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
 (2007-08-08) on rietz.debian.org
X-Spam-Level: 
X-Spam-Bayes: score:0.0000 Tokens: new, 34; hammy, 150; neutral, 94; spammy,
 1. spammytokens:0.987-1--viceversa hammytokens:0.000-+--H*M:reportbug,
 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug,
 0.000-+--Severity
X-Spam-Status: No, score=-10.1 required=4.0 tests=AWL,BAYES_00,FOURLA,
 HAS_PACKAGE,RDNS_NONE,SPF_NEUTRAL,XMAILER_REPORTBUG autolearn=ham
 version=3.2.3-bugs.debian.org_2005_01_02
Return-path: &lt;ngreco@gmail.com&gt;
Received: from [201.216.248.178] (helo=[127.0.1.1])
 by rietz.debian.org with esmtp (Exim 4.63)
 (envelope-from &lt;ngreco@gmail.com&gt;) id 1NDnXm-0005hj-0K
 for submit@bugs.debian.org; Thu, 26 Nov 2009 23:14:34 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Nahuel Greco &lt;ngreco@gmail.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: erlang-mode,
 erlang-manpages: non erlang related manpages in the &quot;Erlang&quot; menu at the
 menubar
Message-ID: &lt;20091126231447.7691.44538.reportbug@serge&gt;
X-Mailer: reportbug 4.8
Date: Thu, 26 Nov 2009 20:14:47 -0300
Delivered-To: submit@bugs.debian.org

Package: erlang-mode
Version: 1:13.b.2.1-dfsg-1
Severity: normal


erlang-mode builds the manpage menus by searching for manpages in the directory specified
using the erlang-root-dir variable setted to &quot;/usr/lib/erlang&quot; in 
/etc/emacs/site-start.d/50erlang-mode.el, and the erlang-man-dirs variable setted on
erlang-mode.el. Then uses a regex defined in erlang-mode.el as:

  (defun erlang-man-get-files (dir)
    &quot;Return files in directory DIR.&quot;
    (directory-files dir t &quot;.*\\.\\([124-9]\\|3erl\\)?\\(\\.gz\\)?\\'&quot;))

The erlang-manpages package installs the manpages on /usr/share/man/* where non erlang
related manpages also reside, and creates a /usr/lib/erlang/man -&gt; /usr/share/man symlink.

So, by traversing that symlink erlang-mode erroneously founds all manpages in the system as
erlang ones. 

Two notes about the regex: 1- there are other similar regexes used in
erlang-mode.el 2- the &quot;3erl&quot; string must be optional because there are manpages like
/usr/share/man/man6/kernel.6.gz that not contain it.  

I think the proper solution is to modify erlang-manpages to create an 
/usr/lib/erlang/man directory instead of a symlink, and then man{3,4,6} directories
containing  one symlink for each manpage to his corresponding file in /usr/share/man 
(or viceversa).

Btw, this seems to be the continuation of the #436044 bug :) Creating the /usr/lib/erlang/man
was a bad solution, erlang manpages become undifferentiated, but the empty /usr/lib/erlang/man
was also bad.


-l System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages erlang-mode depends on:
ii  emacsen-common                1.4.19     Common facilities for all emacsen

erlang-mode recommends no packages.

Versions of packages erlang-mode suggests:
ii  erlang                 1:13.b.2.1-dfsg-1 Concurrent, real-time, distributed
ii  erlang-doc-html        1:13.b.2.1-dfsg-2 Erlang/OTP HTML documentation
ii  erlang-manpages        1:13.b.2.1-1      Erlang/OTP manual pages

-- no debconf information


]