# HG changeset patch # User Richard M. Stallman # Date 764659457 0 # Node ID f5ab0b6b964091e7e7ba3f7d2e27353dceb040c0 # Parent 4fa1c2b2f1e98b52e7af28f3532ef01cc9eac56f (Info-insert-dir): Add a save-excursion. Require menu items for subnodes to end in ::. diff -r 4fa1c2b2f1e9 -r f5ab0b6b9640 lisp/info.el --- a/lisp/info.el Fri Mar 25 23:49:50 1994 +0000 +++ b/lisp/info.el Sat Mar 26 05:24:17 1994 +0000 @@ -408,12 +408,15 @@ (end (save-excursion (search-forward "\^_" nil t) (point)))) (while nodes (let ((nodename (car (car nodes)))) - (or (member (downcase nodename) menu-items) - (re-search-forward (concat "^\\* " (regexp-quote nodename) ":") - end t) - (progn - (insert "* " nodename "::" "\n") - (setq menu-items (cons nodename menu-items))))) + (save-excursion + (or (member (downcase nodename) menu-items) + (re-search-forward (concat "^\\* " + (regexp-quote nodename) + "::") + end t) + (progn + (insert "* " nodename "::" "\n") + (setq menu-items (cons nodename menu-items)))))) (setq nodes (cdr nodes)))) ;; Now take each node of each of the other buffers ;; and merge it into the main buffer.