Package: erlang-mode
Version: 1:17.3-dfsg-3
Severity: normal
Tags: patch

Hi,
currently if I do

M-x erlang-man-function
file:consult

emacs displays the manpage of the "file" command (/usr/bin/file) but
not the erlang file modules manpage. This is caused by
erlang-man-function looking at all manpages not only the erlang
ones. Attached patch fixes this. I don't see a reason why we should
look up erlang functions in all manpage sections.

Sorry for the patch not being against the source package, I currently
don't have enough bandwidth to download the whole erlang source
package.
Cheers,
 -- Guido


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-updates'), (500, 'unstable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-rc6 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages erlang-mode depends on:
ii  emacsen-common  2.0.8

erlang-mode recommends no packages.

Versions of packages erlang-mode suggests:
ii  erlang           1:17.3-dfsg-3
ii  erlang-doc       1:17.3-dfsg-3
ii  erlang-manpages  1:17.3-dfsg-3

-- no debconf information
--- /usr/share/emacs/site-lisp/erlang/erlang.el	2014-11-30 20:50:50.000000000 +0100
+++ erlang.el	2014-12-11 13:40:04.881052009 +0100
@@ -2055,7 +2055,7 @@
   (if (or (null module) (string= module ""))
       (error "No Erlang module name given"))
   (let ((dir-list erlang-man-dirs)
-	(pat (concat "/" (regexp-quote module) "\\.\\([124-9]\\|3\\(erl\\)\\)\\(\\.gz\\)?$"))
+	(pat (concat "/" (regexp-quote module) "\\.\\(3erl\\)\\(\\.gz\\)?$"))
 	(file nil)
 	file-list)
     (while (and dir-list (null file))

Reply via email to