From: Eli Zaretskii Date: Sat, 20 May 2006 20:07:20 +0000 (+0000) Subject: (info-apropos): Make sure current-file and current-node have non-nil values. X-Git-Tag: emacs-pretest-22.0.90~2448 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59ad6ae53bdf29758c98f7ce3b2c7138182767c5;p=emacs.git (info-apropos): Make sure current-file and current-node have non-nil values. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b543742f0ff..16c15ec4863 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-05-20 Eli Zaretskii + + * info.el (info-apropos): Make sure current-file and current-node + have non-nil values. + 2006-05-20 Micha,Ak(Bl Cadilhac (tiny change) * 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." manuals matches node nodes) (let ((Info-fontify-maximum-menu-size nil)) (Info-directory) + ;; current-node and current-file are nil when they invoke info-apropos + ;; as the first Info command, i.e. info-apropos loads info.el. In that + ;; case, we use (DIR)Top instead, to avoid signalling an error after + ;; the search is complete. + (when (null current-node) + (setq current-file Info-current-file) + (setq current-node Info-current-node)) (message "Searching indices...") (goto-char (point-min)) (re-search-forward "\\* Menu: *\n" nil t)