aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-09-13 08:00:47 +0000
committerGlenn Morris2007-09-13 08:00:47 +0000
commit53d1f30dca7882b69e5793d528a8a41e27e3b770 (patch)
treeba0c5288820ae1dbb678a1fa3a7936878ac0e500
parent9de9ed525651ee2acf074b31a069d8f6c9a631ff (diff)
downloademacs-53d1f30dca7882b69e5793d528a8a41e27e3b770.tar.gz
emacs-53d1f30dca7882b69e5793d528a8a41e27e3b770.zip
Jari Aalto <jari.aalto at cante.net>
(Man-default-man-entry): At end of line, continue looking to the next line for possible end of hyphenated command.
-rw-r--r--lisp/man.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/man.el b/lisp/man.el
index c7593e88dda..fc84f327271 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -652,7 +652,13 @@ If POS is nil, the current point is used."
652 (skip-chars-backward "-a-zA-Z0-9._+:") 652 (skip-chars-backward "-a-zA-Z0-9._+:")
653 (let ((start (point))) 653 (let ((start (point)))
654 (skip-chars-forward "-a-zA-Z0-9._+:") 654 (skip-chars-forward "-a-zA-Z0-9._+:")
655 (setq word (buffer-substring-no-properties start (point)))) 655 ;; If there is a continuation at the end of line, check the
656 ;; following line too, eg:
657 ;; see this-
658 ;; command-here(1)
659 (setq word (buffer-substring-no-properties start (point)))
660 (if (looking-at "[ \t\r\n]+\\([-a-zA-Z0-9._+:]+\\)([0-9])")
661 (setq word (concat word (match-string 1)))))
656 (if (string-match "[._]+$" word) 662 (if (string-match "[._]+$" word)
657 (setq word (substring word 0 (match-beginning 0)))) 663 (setq word (substring word 0 (match-beginning 0))))
658 ;; If looking at something like *strcat(... , remove the '*' 664 ;; If looking at something like *strcat(... , remove the '*'