changeset 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 bbb46679c9d9
children c086dd3d5f44
files lisp/ChangeLog lisp/man.el
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Nov 10 03:18:51 2005 +0000
+++ b/lisp/ChangeLog	Thu Nov 10 04:49:19 2005 +0000
@@ -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.
--- 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