GNU bug report logs -
#14400
M-x man should know that "->" can't be part of a man page name
Previous Next
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
View this message in rfc822 format
> 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.