summaryrefslogtreecommitdiff
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
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>.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/man.el4
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9fa5965093c..685c56bd6ba 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-10 Masatake YAMATO <jet@gyve.org>
+
+ * man.el (Man-highlight-references): Set an empty
+ string to `Man-arguments' if it is nil.
+ Suggested by Reiner Steib <reinersteib+gmane@imap.cc>.
+
2005-11-09 Richard M. Stallman <rms@gnu.org>
* apropos.el (apropos-pattern): Renamed from apropos-regexp.
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