diff lisp/man.el @ 66792:9a04e09eb6c9

(Man-highlight-references): Set an empty string to `Man-arguments' if it is nil. Suggested by Reiner Steib <reinersteib+gmane@imap.cc>.
author Masatake YAMATO <jet@gyve.org>
date Thu, 10 Nov 2005 04:49:19 +0000
parents 66a34cb7272d
children a6acb03fe18c
line wrap: on
line diff
--- a/lisp/man.el	Thu Nov 10 03:18:51 2005 +0000
+++ b/lisp/man.el	Thu Nov 10 04:49:19 2005 +0000
@@ -923,6 +923,10 @@
 If XREF-MAN-TYPE is used as the button type for items
 in SEE ALSO section. If it is nil, default type, 
 `Man-xref-man-page' is used."
+  ;; `Man-highlight-references' is used from woman.el, too.
+  ;; woman.el doesn't set `Man-arguments'.
+  (unless Man-arguments
+    (setq Man-arguments ""))
   (if (string-match "-k " Man-arguments)
       (progn
 	(Man-highlight-references0