aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2006-05-20 20:07:20 +0000
committerEli Zaretskii2006-05-20 20:07:20 +0000
commit59ad6ae53bdf29758c98f7ce3b2c7138182767c5 (patch)
tree1ef73e7f28aff7861e12a6d645f93b4209cb1770
parentc7292dcbba2967e171ab97895655a6dc96b6e32b (diff)
downloademacs-59ad6ae53bdf29758c98f7ce3b2c7138182767c5.tar.gz
emacs-59ad6ae53bdf29758c98f7ce3b2c7138182767c5.zip
(info-apropos): Make sure current-file and current-node have non-nil values.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/info.el7
2 files changed, 12 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b543742f0ff..16c15ec4863 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12006-05-20 Eli Zaretskii <eliz@gnu.org>
2
3 * info.el (info-apropos): Make sure current-file and current-node
4 have non-nil values.
5
12006-05-20 Micha,Ak(Bl Cadilhac <michael.cadilhac@lrde.org> (tiny change) 62006-05-20 Micha,Ak(Bl Cadilhac <michael.cadilhac@lrde.org> (tiny change)
2 7
3 * progmodes/make-mode.el (makefile-mode): Doc fix. 8 * progmodes/make-mode.el (makefile-mode): Doc fix.
diff --git a/lisp/info.el b/lisp/info.el
index 163441893db..d689556b321 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -2907,6 +2907,13 @@ Build a menu of the possible matches."
2907 manuals matches node nodes) 2907 manuals matches node nodes)
2908 (let ((Info-fontify-maximum-menu-size nil)) 2908 (let ((Info-fontify-maximum-menu-size nil))
2909 (Info-directory) 2909 (Info-directory)
2910 ;; current-node and current-file are nil when they invoke info-apropos
2911 ;; as the first Info command, i.e. info-apropos loads info.el. In that
2912 ;; case, we use (DIR)Top instead, to avoid signalling an error after
2913 ;; the search is complete.
2914 (when (null current-node)
2915 (setq current-file Info-current-file)
2916 (setq current-node Info-current-node))
2910 (message "Searching indices...") 2917 (message "Searching indices...")
2911 (goto-char (point-min)) 2918 (goto-char (point-min))
2912 (re-search-forward "\\* Menu: *\n" nil t) 2919 (re-search-forward "\\* Menu: *\n" nil t)