Change file links in man pages * lisp/man.el (Man-file-name-regexp): Remove single trailing dot and force beginning at the beggining of a symbol. --- lisp/man.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/man.el b/lisp/man.el index a61524b..5f278ac 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -339,7 +339,8 @@ This regexp should not start with a `^' character.") "Regular expression describing references to header files.") (defvar Man-normal-file-regexp - (concat Man-normal-file-prefix-regexp Man-file-name-regexp) + (concat "\\(\\_<" Man-normal-file-prefix-regexp + "[^<>\", \t\n]+?\\)\\.?\\_>") "Regular expression describing references to normal files.") ;; This includes the section as an optional part to catch hyphenated @@ -1268,7 +1269,7 @@ default type, `Man-xref-man-page' is used for the buttons." (or xref-man-type 'Man-xref-man-page)) (Man-highlight-references0 Man-synopsis-regexp Man-header-regexp 0 2 'Man-xref-header-file) - (Man-highlight-references0 Man-files-regexp Man-normal-file-regexp 0 0 + (Man-highlight-references0 Man-files-regexp Man-normal-file-regexp 1 1 'Man-xref-normal-file))) (defun Man-highlight-references0 (start-section regexp button-pos target type)