GNU bug report logs - #14400
M-x man should know that "->" can't be part of a man page name

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 14 May 2013 17:31:03 UTC

Severity: minor

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 14400 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: jidanni <at> jidanni.org
Cc: 14400 <at> debbugs.gnu.org
Subject: Re: bug#14400: M-x man should know that "->" can't be part of a man
	page name
Date: Thu, 16 May 2013 01:54:40 +0300
> my $ua = LWP::UserAgent->new(...
> and one types M-x man, instead of
> Manual entry (default LWP::UserAgent-):
> it should prompt with
> Manual entry (default LWP::UserAgent):

Removing `-' from the end of the default value could be
fixed in `Man-default-man-entry' by this patch:

=== modified file 'lisp/man.el'
--- lisp/man.el	2013-02-12 07:57:04 +0000
+++ lisp/man.el	2013-05-15 22:51:39 +0000
@@ -767,7 +767,7 @@ (defun Man-default-man-entry (&optional
 	(setq word (concat word (match-string-no-properties 1)))
 	;; Make sure the section number gets included by the code below.
 	(goto-char (match-end 1)))
-      (when (string-match "[._]+$" word)
+      (when (string-match "[._-]+$" word)
 	(setq word (substring word 0 (match-beginning 0))))
       ;; The following was commented out since the preceding code
       ;; should not produce a leading "*" in the first place.





This bug report was last modified 12 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.