aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/info.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/info.el b/lisp/info.el
index be9850f0fff..0b45af541bc 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -408,12 +408,15 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
408 (end (save-excursion (search-forward "\^_" nil t) (point)))) 408 (end (save-excursion (search-forward "\^_" nil t) (point))))
409 (while nodes 409 (while nodes
410 (let ((nodename (car (car nodes)))) 410 (let ((nodename (car (car nodes))))
411 (or (member (downcase nodename) menu-items) 411 (save-excursion
412 (re-search-forward (concat "^\\* " (regexp-quote nodename) ":") 412 (or (member (downcase nodename) menu-items)
413 end t) 413 (re-search-forward (concat "^\\* "
414 (progn 414 (regexp-quote nodename)
415 (insert "* " nodename "::" "\n") 415 "::")
416 (setq menu-items (cons nodename menu-items))))) 416 end t)
417 (progn
418 (insert "* " nodename "::" "\n")
419 (setq menu-items (cons nodename menu-items))))))
417 (setq nodes (cdr nodes)))) 420 (setq nodes (cdr nodes))))
418 ;; Now take each node of each of the other buffers 421 ;; Now take each node of each of the other buffers
419 ;; and merge it into the main buffer. 422 ;; and merge it into the main buffer.