* lisp/man.el (Man-default-man-entry): Remove `-' from the end of the default value.

Fixes: debbugs:14400
This commit is contained in:
Juri Linkov 2013-05-19 02:18:16 +03:00
parent 8051fccd46
commit c1a6c0a420
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-05-18 Juri Linkov <juri@jurta.org>
* man.el (Man-default-man-entry): Remove `-' from the end
of the default value. (Bug#14400)
2013-05-18 Glenn Morris <rgm@gnu.org>
* comint.el (comint-password-prompt-regexp):

View file

@ -752,7 +752,7 @@ POS defaults to `point'."
(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.