Highlight cross-references all across man pages, except the title * lisp/man.el (Man-highlight-references, Man-highlight-references0) --- lisp/man.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/man.el b/lisp/man.el index a61524b..1c482ba 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -1263,7 +1263,7 @@ default type, `Man-xref-man-page' is used for the buttons." (Man-highlight-references0 nil Man-apropos-regexp 1 'Man-default-man-entry (or xref-man-type 'Man-xref-man-page))) - (Man-highlight-references0 Man-see-also-regexp Man-reference-regexp 1 + (Man-highlight-references0 nil Man-reference-regexp 1 'Man-default-man-entry (or xref-man-type 'Man-xref-man-page)) (Man-highlight-references0 Man-synopsis-regexp Man-header-regexp 0 2 @@ -1284,6 +1284,8 @@ default type, `Man-xref-man-page' is used for the buttons." (point))) (goto-char (point-min)) nil))) + (if (eq (point) 1) + (Man-next-section 1)) (while (re-search-forward regexp end t) ;; An overlay button is preferable because the underlying text ;; may have text property highlights (Bug#7881).