From unknown Sat Aug 16 16:19:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Aug 2012 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 12230@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: Eli Zaretskii Received: via spool by submit@debbugs.gnu.org id=B.134531372416316 (code B ref -1); Sat, 18 Aug 2012 18:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Aug 2012 18:15:24 +0000 Received: from localhost ([127.0.0.1]:37773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2nYS-0004ED-2F for submit@debbugs.gnu.org; Sat, 18 Aug 2012 14:15:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44603) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2nYP-0004AC-JZ for submit@debbugs.gnu.org; Sat, 18 Aug 2012 14:15:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2nYK-0000rX-IB for submit@debbugs.gnu.org; Sat, 18 Aug 2012 14:15:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2nYK-0000rT-Ec for submit@debbugs.gnu.org; Sat, 18 Aug 2012 14:15:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2nYJ-0007Z0-4G for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 14:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2nYH-0000rD-M2 for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 14:15:15 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:37353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2nYH-0000r3-8w for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 14:15:13 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8Y00H00QOLZ700@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 21:15:11 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8Y00H8NQPBWB40@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 21:15:11 +0300 (IDT) Date: Sat, 18 Aug 2012 21:15:24 +0300 From: Eli Zaretskii X-012-Sender: halo1@inter.net.il Message-id: <83boi8dq2r.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This problem cannot easily happen in "emacs -Q", so no reproducible recipe, sorry. However, the problem is quite clear: if you "M-x revert-buffer" in an Info buffer, and the new Info file changed the names of its Index nodes, then the 'i' command will most probably fail the next time you invoke it in that Info buffer. A case in point is the GDB manual: it recently split its Index node into 2 nodes, called "Concept Index" and "Command and Variable Index", respectively. After reverting its Info buffer, 'i' started signaling an error, complaining about the missing node "Index". The problem is that info.el caches the Index nodes in the alist stored in Info-index-nodes. It should therefore remove from that alist the association of the Info file whose buffer is reverted. In GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-16 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1255 default enable-multibyte-characters: t Major mode: Mail Minor modes in effect: diff-auto-refine-mode: t flyspell-mode: t desktop-save-mode: t show-paren-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t line-number-mode: t abbrev-mode: t Recent input: C-x b I N B M-: I n f o - i n d e x - m n o d e s C-x b * s c r I n f o - i n d e x - n o d e s C-j C-s g d b C-x b C-x 5 b x d C-h f w 3 2 - a d d C-x 5 b * i n 2 4 > i a u t o - l o a d M-1 g o o d C-x C-s M-1 g d d d m M-x r e p o r t - e m Recent messages: byte-code: Beginning of buffer [2 times] Getting mail from d:/usr/eli/data/mail.new... Counting new messages...done (3) Saving file d:/usr/eli/rmail/INBOX... Wrote d:/usr/eli/rmail/INBOX [2 times] Computing summary lines...done 3 new messages read No following nondeleted message Parsing d:/usr/eli/.mailrc... done Scanning for dabbrevs...done Load-path shadows: None found. Features: (shadow dabbrev emacsbug mailalias sendmail rmailout help-mode view misearch multi-isearch texinfo tcl nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok sgml-mode make-mode conf-mode newcomment parse-time generic ld-script sh-script executable vc-git arc-mode archive-mode diff-mode dired-x dired jka-compr autorevert vc-cvs face-remap org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode cal-menu calendar cal-loaddefs flyspell info vc-bzr cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt qp rmailsum rmailmm message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils desktop server filecache mairix cus-edit easymenu cus-start cus-load wid-edit saveplace midnight ispell generic-x paren battery time time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From unknown Sat Aug 16 16:19:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Aug 2012 22:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 12230@debbugs.gnu.org Received: via spool by 12230-submit@debbugs.gnu.org id=B12230.13453292379998 (code B ref 12230); Sat, 18 Aug 2012 22:34:02 +0000 Received: (at 12230) by debbugs.gnu.org; 18 Aug 2012 22:33:57 +0000 Received: from localhost ([127.0.0.1]:37933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2raf-0002bC-E6 for submit@debbugs.gnu.org; Sat, 18 Aug 2012 18:33:57 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:41325 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2rad-0002b5-G5 for 12230@debbugs.gnu.org; Sat, 18 Aug 2012 18:33:56 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 4413A451CC25; Sat, 18 Aug 2012 15:33:49 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <83boi8dq2r.fsf@gnu.org> Date: Sun, 19 Aug 2012 01:31:17 +0300 In-Reply-To: <83boi8dq2r.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 18 Aug 2012 21:15:24 +0300") Message-ID: <877gsvg7d6.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > The problem is that info.el caches the Index nodes in the alist stored > in Info-index-nodes. It should therefore remove from that alist the > association of the Info file whose buffer is reverted. Since `Info-revert-find-node' is not the right place to clear the cache because the same problem can occur after killing the Info buffer and revisiting the same Info manual manually, perhaps the right fix would be to check the modtime of the Info file in `Info-find-file' and clear the cache for modified files. From unknown Sat Aug 16 16:19:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Aug 2012 02:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 12230@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 12230-submit@debbugs.gnu.org id=B12230.134534447931512 (code B ref 12230); Sun, 19 Aug 2012 02:48:01 +0000 Received: (at 12230) by debbugs.gnu.org; 19 Aug 2012 02:47:59 +0000 Received: from localhost ([127.0.0.1]:38072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2vYU-0008CD-Rw for submit@debbugs.gnu.org; Sat, 18 Aug 2012 22:47:59 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:62419) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2vYR-0008C5-Ss for 12230@debbugs.gnu.org; Sat, 18 Aug 2012 22:47:56 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M8Z00900ECSJP00@a-mtaout20.012.net.il> for 12230@debbugs.gnu.org; Sun, 19 Aug 2012 05:47:49 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8Z0092REFPB360@a-mtaout20.012.net.il>; Sun, 19 Aug 2012 05:47:49 +0300 (IDT) Date: Sun, 19 Aug 2012 05:48:03 +0300 From: Eli Zaretskii In-reply-to: <877gsvg7d6.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il Message-id: <831uj3egws.fsf@gnu.org> References: <83boi8dq2r.fsf@gnu.org> <877gsvg7d6.fsf@mail.jurta.org> X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Juri Linkov > Cc: 12230@debbugs.gnu.org > Date: Sun, 19 Aug 2012 01:31:17 +0300 > > > The problem is that info.el caches the Index nodes in the alist stored > > in Info-index-nodes. It should therefore remove from that alist the > > association of the Info file whose buffer is reverted. > > Since `Info-revert-find-node' is not the right place to clear > the cache because the same problem can occur after killing > the Info buffer and revisiting the same Info manual manually, > perhaps the right fix would be to check the modtime of the Info file > in `Info-find-file' and clear the cache for modified files. That should do the trick, I think. Thanks. From unknown Sat Aug 16 16:19:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Aug 2012 23:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 12230@debbugs.gnu.org Received: via spool by 12230-submit@debbugs.gnu.org id=B12230.134541977817543 (code B ref 12230); Sun, 19 Aug 2012 23:43:02 +0000 Received: (at 12230) by debbugs.gnu.org; 19 Aug 2012 23:42:58 +0000 Received: from localhost ([127.0.0.1]:39011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3F8z-0004Yu-LP for submit@debbugs.gnu.org; Sun, 19 Aug 2012 19:42:57 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:51033 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3F8x-0004Ym-1g for 12230@debbugs.gnu.org; Sun, 19 Aug 2012 19:42:56 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 38417451CA52; Sun, 19 Aug 2012 16:42:43 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <83boi8dq2r.fsf@gnu.org> <877gsvg7d6.fsf@mail.jurta.org> <831uj3egws.fsf@gnu.org> Date: Mon, 20 Aug 2012 02:39:29 +0300 In-Reply-To: <831uj3egws.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Aug 2012 05:48:03 +0300") Message-ID: <87393i8n9q.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> Since `Info-revert-find-node' is not the right place to clear >> the cache because the same problem can occur after killing >> the Info buffer and revisiting the same Info manual manually, >> perhaps the right fix would be to check the modtime of the Info file >> in `Info-find-file' and clear the cache for modified files. > > That should do the trick, I think. Thanks. Actually there are more caches that should be cleared. The following patch should clear them: === modified file 'lisp/info.el' --- lisp/info.el 2012-08-07 16:12:20 +0000 +++ lisp/info.el 2012-08-19 23:38:18 +0000 @@ -813,6 +816,10 @@ (defun Info-node-at-bob-matching (regexp (forward-line 1) ; does the line after delimiter match REGEXP? (re-search-backward regexp beg t)))) +(defvar Info-file-attributes nil + "List of the file attributes of visited Info files. +Each element is a list (FILE-NAME FILE-ATTRIBUTES...).") + (defun Info-find-file (filename &optional noerror) "Return expanded FILENAME, or t if FILENAME is \"dir\". Optional second argument NOERROR, if t, means if file is not found @@ -875,6 +882,22 @@ (defun Info-find-file (filename &optiona (if noerror (setq filename nil) (error "Info file %s does not exist" filename))) + ;; Clear the caches of modified Info files. + (let* ((attribs-old (cdr (assoc filename Info-file-attributes))) + (modtime-old (and attribs-old (nth 5 attribs-old))) + (attribs-new (and (stringp filename) (file-attributes filename))) + (modtime-new (and attribs-new (nth 5 attribs-new)))) + (when (and modtime-old modtime-new + (> (float-time modtime-new) (float-time modtime-old))) + (setq Info-index-nodes (remove (assoc filename Info-index-nodes) + Info-index-nodes)) + (setq Info-toc-nodes (remove (assoc filename Info-toc-nodes) + Info-toc-nodes))) + ;; Add new modtime to `Info-file-attributes'. + (setq Info-file-attributes + (cons (cons filename attribs-new) + (remove (assoc filename Info-file-attributes) + Info-file-attributes)))) filename)))) (defun Info-find-node (filename nodename &optional no-going-back) From unknown Sat Aug 16 16:19:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Aug 2012 02:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 12230@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 12230-submit@debbugs.gnu.org id=B12230.13454307764011 (code B ref 12230); Mon, 20 Aug 2012 02:47:01 +0000 Received: (at 12230) by debbugs.gnu.org; 20 Aug 2012 02:46:16 +0000 Received: from localhost ([127.0.0.1]:39120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3I0N-00012e-O2 for submit@debbugs.gnu.org; Sun, 19 Aug 2012 22:46:16 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:57675) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3I0M-00012X-Dw for 12230@debbugs.gnu.org; Sun, 19 Aug 2012 22:46:14 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M91001008MCUT00@a-mtaout20.012.net.il> for 12230@debbugs.gnu.org; Mon, 20 Aug 2012 05:45:24 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M91001DN8ZNV110@a-mtaout20.012.net.il>; Mon, 20 Aug 2012 05:45:24 +0300 (IDT) Date: Mon, 20 Aug 2012 05:45:24 +0300 From: Eli Zaretskii In-reply-to: <87393i8n9q.fsf@mail.jurta.org> X-012-Sender: halo1@inter.net.il Message-id: <83ehn2cmd7.fsf@gnu.org> References: <83boi8dq2r.fsf@gnu.org> <877gsvg7d6.fsf@mail.jurta.org> <831uj3egws.fsf@gnu.org> <87393i8n9q.fsf@mail.jurta.org> X-Spam-Score: -1.2 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Juri Linkov > Cc: 12230@debbugs.gnu.org > Date: Mon, 20 Aug 2012 02:39:29 +0300 > > >> Since `Info-revert-find-node' is not the right place to clear > >> the cache because the same problem can occur after killing > >> the Info buffer and revisiting the same Info manual manually, > >> perhaps the right fix would be to check the modtime of the Info file > >> in `Info-find-file' and clear the cache for modified files. > > > > That should do the trick, I think. Thanks. > > Actually there are more caches that should be cleared. > The following patch should clear them: Looks good to me, thanks. From unknown Sat Aug 16 16:19:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Aug 2012 00:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 12230@debbugs.gnu.org Received: via spool by 12230-submit@debbugs.gnu.org id=B12230.134550843431587 (code B ref 12230); Tue, 21 Aug 2012 00:21:01 +0000 Received: (at 12230) by debbugs.gnu.org; 21 Aug 2012 00:20:34 +0000 Received: from localhost ([127.0.0.1]:40606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3cCv-0008DP-K6 for submit@debbugs.gnu.org; Mon, 20 Aug 2012 20:20:34 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:48896 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3cCs-0008DH-5t for 12230@debbugs.gnu.org; Mon, 20 Aug 2012 20:20:31 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 8A9CD451CB12; Mon, 20 Aug 2012 17:20:12 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <83boi8dq2r.fsf@gnu.org> <877gsvg7d6.fsf@mail.jurta.org> <831uj3egws.fsf@gnu.org> <87393i8n9q.fsf@mail.jurta.org> <83ehn2cmd7.fsf@gnu.org> Date: Tue, 21 Aug 2012 03:15:14 +0300 In-Reply-To: <83ehn2cmd7.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Aug 2012 05:45:24 +0300") Message-ID: <87a9xphzfa.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Looks good to me, thanks. Installed with cache invalidation for `Info-index-nodes' and `Info-toc-nodes' (I had to put code to `info-insert-file-contents' instead of `Info-find-file' because the full filename is available only in the former). There is also `Info-history' that contains information about nodes, but I see no reasonable way to update `Info-history' to reflect changes in the modified Info files. BTW, let me use this opportunity to propose an improvement that restores the original window point when returning back to the previous node. This helps to avoid distraction when point jumps from the original window position (displayed before leaving the Info node) to another position (by default, center of the window): === modified file 'lisp/info.el' --- lisp/info.el 2012-08-08 08:48:57 +0000 +++ lisp/info.el 2012-08-21 00:14:18 +0000 @@ -40,11 +40,11 @@ (defgroup info nil (defvar Info-history nil "Stack of Info nodes user has visited. -Each element of the stack is a list (FILENAME NODENAME BUFFERPOS).") +Each element of the stack is a list (FILENAME NODENAME BUFFERPOS WINDOWPOS).") (defvar Info-history-forward nil "Stack of Info nodes user has visited with `Info-history-back' command. -Each element of the stack is a list (FILENAME NODENAME BUFFERPOS).") +Each element of the stack is a list (FILENAME NODENAME BUFFERPOS WINDOWPOS).") (defvar Info-history-list nil "List of all Info nodes user has visited. @@ -888,7 +925,7 @@ (defun Info-find-node (filename nodename ;; Record the node we are leaving, if we were in one. (and (not no-going-back) Info-current-file - (push (list Info-current-file Info-current-node (point)) + (push (list Info-current-file Info-current-node (point) (window-start)) Info-history)) (Info-find-node-2 filename nodename no-going-back)) @@ -922,7 +959,7 @@ (defun Info-revert-find-node (filename n (pline (count-lines (point-min) (line-beginning-position))) (wline (count-lines (point-min) (window-start))) (new-history (and Info-current-file - (list Info-current-file Info-current-node (point))))) + (list Info-current-file Info-current-node (point) (window-start))))) ;; When `Info-current-file' is nil, `Info-find-node-2' rereads the file. (setq Info-current-file nil) (Info-find-node filename nodename) @@ -1192,7 +1229,8 @@ (defun Info-find-node-2 (filename nodena (let ((hist (car Info-history))) (setq Info-history (cdr Info-history)) (Info-find-node (nth 0 hist) (nth 1 hist) t) - (goto-char (nth 2 hist)))))) + (goto-char (nth 2 hist)) + (set-window-start (selected-window) (nth 3 hist)))))) ;; Cache the contents of the (virtual) dir file, once we have merged ;; it for the first time, so we can save time subsequently. @@ -1968,7 +2008,7 @@ (defun Info-search (regexp &optional bou (equal ofile Info-current-file)) (and isearch-mode isearch-wrapped (eq opoint (if isearch-forward opoint-min opoint-max))) - (setq Info-history (cons (list ofile onode opoint) + (setq Info-history (cons (list ofile onode opoint ostart) Info-history)))))) (defun Info-search-case-sensitively () @@ -2174,17 +2214,19 @@ (defun Info-history-back () (or Info-history (user-error "This is the first Info node you looked at")) (let ((history-forward - (cons (list Info-current-file Info-current-node (point)) + (cons (list Info-current-file Info-current-node (point) (window-start)) Info-history-forward)) - filename nodename opoint) + filename nodename opoint ostart) (setq filename (car (car Info-history))) (setq nodename (car (cdr (car Info-history)))) (setq opoint (car (cdr (cdr (car Info-history))))) + (setq ostart (car (cdr (cdr (cdr (car Info-history)))))) (setq Info-history (cdr Info-history)) (Info-find-node filename nodename) (setq Info-history (cdr Info-history)) (setq Info-history-forward history-forward) - (goto-char opoint))) + (goto-char opoint) + (set-window-start (selected-window) ostart))) (defalias 'Info-last 'Info-history-back) @@ -2194,13 +2236,15 @@ (defun Info-history-forward () (or Info-history-forward (user-error "This is the last Info node you looked at")) (let ((history-forward (cdr Info-history-forward)) - filename nodename opoint) + filename nodename opoint ostart) (setq filename (car (car Info-history-forward))) (setq nodename (car (cdr (car Info-history-forward)))) (setq opoint (car (cdr (cdr (car Info-history-forward))))) + (setq ostart (car (cdr (cdr (cdr (car Info-history-forward)))))) (Info-find-node filename nodename) (setq Info-history-forward history-forward) - (goto-char opoint))) + (goto-char opoint) + (set-window-start (selected-window) ostart))) (add-to-list 'Info-virtual-files '("\\`dir\\'" From unknown Sat Aug 16 16:19:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Aug 2012 06:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: 12230@debbugs.gnu.org Received: via spool by 12230-submit@debbugs.gnu.org id=B12230.134552974629876 (code B ref 12230); Tue, 21 Aug 2012 06:16:01 +0000 Received: (at 12230) by debbugs.gnu.org; 21 Aug 2012 06:15:46 +0000 Received: from localhost ([127.0.0.1]:40898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3hkf-0007ln-DC for submit@debbugs.gnu.org; Tue, 21 Aug 2012 02:15:46 -0400 Received: from mail-pz0-f42.google.com ([209.85.210.42]:33969) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3hkc-0007lf-UJ for 12230@debbugs.gnu.org; Tue, 21 Aug 2012 02:15:43 -0400 Received: by dalf4 with SMTP id f4so2773225dal.29 for <12230@debbugs.gnu.org>; Mon, 20 Aug 2012 23:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=Lqo6oXlOvdXpKBRaSZdoNVMNRSHjTWxDfSZZ8vmARh0=; b=HTruDomlloYaSlf++j5dDY/3GCix4PJsfthG8U/AsdwnZqJ+sA8iItNo6fz9OVQ3HO jqSpn1FBfoaIJMKhLPCGmieSHJbJwHjzrzWYVvbAoui06HX3ApOcRK4Hg+jREGDYrLBt Cf2HIKoATKiHrfcWNSU7X60uYMc+V2WXY7m7TQ7am+1dDwFg1re2sTeOF3e7pyETXI4Z CIvH+sZx8/URI5+tviR6U20YzQYdBPufWM13uLg3Unjhb/uxRyI6OFYeBQcrDBWHtInl hZGcwVJ1s1TCqeVTDLMjiOQFY+ptfNdREMIJDuqjj5K519x21Jmq7+RZzzIVolPIRWKj EDIA== Received: by 10.68.191.72 with SMTP id gw8mr41465125pbc.143.1345529724076; Mon, 20 Aug 2012 23:15:24 -0700 (PDT) Received: from ulysses ([155.69.18.18]) by mx.google.com with ESMTPS id kc7sm787430pbb.5.2012.08.20.23.15.21 (version=SSLv3 cipher=OTHER); Mon, 20 Aug 2012 23:15:23 -0700 (PDT) From: Chong Yidong References: <83boi8dq2r.fsf@gnu.org> <877gsvg7d6.fsf@mail.jurta.org> <831uj3egws.fsf@gnu.org> <87393i8n9q.fsf@mail.jurta.org> <83ehn2cmd7.fsf@gnu.org> <87a9xphzfa.fsf@mail.jurta.org> Date: Tue, 21 Aug 2012 14:15:18 +0800 In-Reply-To: <87a9xphzfa.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 21 Aug 2012 03:15:14 +0300") Message-ID: <877gssepop.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Juri Linkov writes: > Installed with cache invalidation for `Info-index-nodes' and > `Info-toc-nodes' (I had to put code to `info-insert-file-contents' > instead of `Info-find-file' because the full filename is available > only in the former). Thanks. If this bug is fixed, please close it in the tracker. > BTW, let me use this opportunity to propose an improvement that restores > the original window point when returning back to the previous node. > This helps to avoid distraction when point jumps from the original > window position (displayed before leaving the Info node) to > another position (by default, center of the window): Looks fine by me. From unknown Sat Aug 16 16:19:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Aug 2012 06:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12230 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov Cc: Eli Zaretskii , 12230@debbugs.gnu.org Received: via spool by 12230-submit@debbugs.gnu.org id=B12230.1345531777352 (code B ref 12230); Tue, 21 Aug 2012 06:50:02 +0000 Received: (at 12230) by debbugs.gnu.org; 21 Aug 2012 06:49:37 +0000 Received: from localhost ([127.0.0.1]:40922 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3iHQ-00005c-72 for submit@debbugs.gnu.org; Tue, 21 Aug 2012 02:49:36 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:37916) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T3iHN-00005U-IW for 12230@debbugs.gnu.org; Tue, 21 Aug 2012 02:49:34 -0400 Received: (qmail invoked by alias); 21 Aug 2012 06:49:15 -0000 Received: from 62-47-53-238.adsl.highway.telekom.at (EHLO [62.47.53.238]) [62.47.53.238] by mail.gmx.net (mp069) with SMTP; 21 Aug 2012 08:49:15 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19GWfxfhkJGmRGGQjedzVWAO0qQP+7NghGxhkgnEO jI0vHKmIDGI/Tl Message-ID: <50332F69.5090907@gmx.at> Date: Tue, 21 Aug 2012 08:49:13 +0200 From: martin rudalics MIME-Version: 1.0 References: <83boi8dq2r.fsf@gnu.org> <877gsvg7d6.fsf@mail.jurta.org> <831uj3egws.fsf@gnu.org> <87393i8n9q.fsf@mail.jurta.org> <83ehn2cmd7.fsf@gnu.org> <87a9xphzfa.fsf@mail.jurta.org> In-Reply-To: <87a9xphzfa.fsf@mail.jurta.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > + (set-window-start (selected-window) (nth 3 hist)))))) [...] > + (set-window-start (selected-window) ostart))) [...] > + (set-window-start (selected-window) ostart))) Are you sure you want to force start positions here? martin From unknown Sat Aug 16 16:19:47 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eli Zaretskii Subject: bug#12230: closed (Re: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes) Message-ID: References: <874nnvvq96.fsf@mail.jurta.org> <83boi8dq2r.fsf@gnu.org> X-Gnu-PR-Message: they-closed 12230 X-Gnu-PR-Package: emacs Reply-To: 12230@debbugs.gnu.org Date: Tue, 21 Aug 2012 22:26:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1345587962-513-1" This is a multi-part message in MIME format... ------------=_1345587962-513-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nod= es which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 12230@debbugs.gnu.org. --=20 12230: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12230 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1345587962-513-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12230-done) by debbugs.gnu.org; 21 Aug 2012 22:25:31 +0000 Received: from localhost ([127.0.0.1]:42093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3wt9-00007a-1E for submit@debbugs.gnu.org; Tue, 21 Aug 2012 18:25:31 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:34932 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T3wt7-00007T-Gg for 12230-done@debbugs.gnu.org; Tue, 21 Aug 2012 18:25:30 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 9B83C451CBF8; Tue, 21 Aug 2012 15:25:05 -0700 (PDT) From: Juri Linkov To: Chong Yidong Subject: Re: bug#12230: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes Organization: JURTA References: <83boi8dq2r.fsf@gnu.org> <877gsvg7d6.fsf@mail.jurta.org> <831uj3egws.fsf@gnu.org> <87393i8n9q.fsf@mail.jurta.org> <83ehn2cmd7.fsf@gnu.org> <87a9xphzfa.fsf@mail.jurta.org> <877gssepop.fsf@gnu.org> Date: Wed, 22 Aug 2012 01:24:53 +0300 In-Reply-To: <877gssepop.fsf@gnu.org> (Chong Yidong's message of "Tue, 21 Aug 2012 14:15:18 +0800") Message-ID: <874nnvvq96.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 12230-done Cc: 12230-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Thanks. If this bug is fixed, please close it in the tracker. Closed. A new request is created in bug#12253. ------------=_1345587962-513-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Aug 2012 18:15:24 +0000 Received: from localhost ([127.0.0.1]:37773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2nYS-0004ED-2F for submit@debbugs.gnu.org; Sat, 18 Aug 2012 14:15:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44603) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T2nYP-0004AC-JZ for submit@debbugs.gnu.org; Sat, 18 Aug 2012 14:15:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2nYK-0000rX-IB for submit@debbugs.gnu.org; Sat, 18 Aug 2012 14:15:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2nYK-0000rT-Ec for submit@debbugs.gnu.org; Sat, 18 Aug 2012 14:15:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2nYJ-0007Z0-4G for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 14:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2nYH-0000rD-M2 for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 14:15:15 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:37353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2nYH-0000r3-8w for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 14:15:13 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8Y00H00QOLZ700@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 21:15:11 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8Y00H8NQPBWB40@a-mtaout22.012.net.il> for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2012 21:15:11 +0300 (IDT) Date: Sat, 18 Aug 2012 21:15:24 +0300 From: Eli Zaretskii Subject: 24.2; revert-buffer in an Info buffer should refresh Info-index-nodes X-012-Sender: halo1@inter.net.il To: bug-gnu-emacs@gnu.org Message-id: <83boi8dq2r.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This problem cannot easily happen in "emacs -Q", so no reproducible recipe, sorry. However, the problem is quite clear: if you "M-x revert-buffer" in an Info buffer, and the new Info file changed the names of its Index nodes, then the 'i' command will most probably fail the next time you invoke it in that Info buffer. A case in point is the GDB manual: it recently split its Index node into 2 nodes, called "Concept Index" and "Command and Variable Index", respectively. After reverting its Info buffer, 'i' started signaling an error, complaining about the missing node "Index". The problem is that info.el caches the Index nodes in the alist stored in Info-index-nodes. It should therefore remove from that alist the association of the Info file whose buffer is reverted. In GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-16 on HOME-C4E4A596F7 Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1255 default enable-multibyte-characters: t Major mode: Mail Minor modes in effect: diff-auto-refine-mode: t flyspell-mode: t desktop-save-mode: t show-paren-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t line-number-mode: t abbrev-mode: t Recent input: C-x b I N B M-: I n f o - i n d e x - m n o d e s C-x b * s c r I n f o - i n d e x - n o d e s C-j C-s g d b C-x b C-x 5 b x d C-h f w 3 2 - a d d C-x 5 b * i n 2 4 > i a u t o - l o a d M-1 g o o d C-x C-s M-1 g d d d m M-x r e p o r t - e m Recent messages: byte-code: Beginning of buffer [2 times] Getting mail from d:/usr/eli/data/mail.new... Counting new messages...done (3) Saving file d:/usr/eli/rmail/INBOX... Wrote d:/usr/eli/rmail/INBOX [2 times] Computing summary lines...done 3 new messages read No following nondeleted message Parsing d:/usr/eli/.mailrc... done Scanning for dabbrevs...done Load-path shadows: None found. Features: (shadow dabbrev emacsbug mailalias sendmail rmailout help-mode view misearch multi-isearch texinfo tcl nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok sgml-mode make-mode conf-mode newcomment parse-time generic ld-script sh-script executable vc-git arc-mode archive-mode diff-mode dired-x dired jka-compr autorevert vc-cvs face-remap org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode cal-menu calendar cal-loaddefs flyspell info vc-bzr cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt qp rmailsum rmailmm message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils desktop server filecache mairix cus-edit easymenu cus-start cus-load wid-edit saveplace midnight ispell generic-x paren battery time time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) ------------=_1345587962-513-1--