summaryrefslogtreecommitdiff
path: root/lisp/man.el
diff options
context:
space:
mode:
authorMasatake YAMATO <jet@gyve.org>2005-11-10 04:49:19 +0000
committerMasatake YAMATO <jet@gyve.org>2005-11-10 04:49:19 +0000
commitaf8308ec80df3e1f05efec6cb030e8f37693fd2c (patch)
treef92682c4be9cd497ba9c3c8c3581ecdb3e16ced8 /lisp/man.el
parentfe8bc3fa174dbfaf3420378f24120afa508b470a (diff)
downloademacs-af8308ec80df3e1f05efec6cb030e8f37693fd2c.tar.gz
(Man-highlight-references): Set an empty
string to `Man-arguments' if it is nil. Suggested by Reiner Steib <reinersteib+gmane@imap.cc>.
Diffstat (limited to 'lisp/man.el')
-rw-r--r--lisp/man.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 30ab44efad0..5b5096f157d 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -923,6 +923,10 @@ header file (#include <foo.h>) and files in FILES.
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