Emacs support: erlang-man-module brings up the wrong man file

Tamas Patrovics <>
Wed Apr 6 10:40:30 CEST 2005

If I invoke erlang-man-module with the module name "file" then for me it 
brings up the CosFileTransfer_File(3) manual page.

In the function erlang-man-module the pattern for matching the relevant man 
file is constructed like this

(pat (concat "\\b" (regexp-quote module) "\\.[^.]$"))

thiis is faulty, because \b matches the beginning of a word, but the 
character '_' is not a word constituent in Erlang mode, so it matches 
CosFileTransfer_File too.

The simplest fix is to change \b to /, so that file name part after the 
slash is matched:

(pat (concat "/" (regexp-quote module) "\\.[^.]$"))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20050406/86ae503d/attachment.html>

More information about the erlang-bugs mailing list