# HG changeset patch # User Glenn Morris # Date 1189670334 0 # Node ID 33c6fafd3276108e2bc0a82018a91157548b16c3 # Parent 54c8de431a51c458bf2dc71ed4947edae3192c7d Jari Aalto (Man-default-man-entry): At end of line, continue looking to the next line for possible end of hyphenated command. diff -r 54c8de431a51 -r 33c6fafd3276 lisp/man.el --- a/lisp/man.el Thu Sep 13 07:42:14 2007 +0000 +++ b/lisp/man.el Thu Sep 13 07:58:54 2007 +0000 @@ -652,7 +652,13 @@ (skip-chars-backward "-a-zA-Z0-9._+:") (let ((start (point))) (skip-chars-forward "-a-zA-Z0-9._+:") - (setq word (buffer-substring-no-properties start (point)))) + ;; If there is a continuation at the end of line, check the + ;; following line too, eg: + ;; see this- + ;; command-here(1) + (setq word (buffer-substring-no-properties start (point))) + (if (looking-at "[ \t\r\n]+\\([-a-zA-Z0-9._+:]+\\)([0-9])") + (setq word (concat word (match-string 1))))) (if (string-match "[._]+$" word) (setq word (substring word 0 (match-beginning 0)))) ;; If looking at something like *strcat(... , remove the '*'