aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/info.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/info.el')
-rw-r--r--lisp/info.el20
1 files changed, 7 insertions, 13 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 92e7c24ab1d..a2071533d8f 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1869,7 +1869,7 @@ a node in FILENAME. \"(FILENAME)\" is a short format to go to
1869the Top node in FILENAME." 1869the Top node in FILENAME."
1870 (let* ((completion-ignore-case t) 1870 (let* ((completion-ignore-case t)
1871 (Info-read-node-completion-table (Info-build-node-completions)) 1871 (Info-read-node-completion-table (Info-build-node-completions))
1872 (nodename (completing-read prompt 'Info-read-node-name-1 nil t))) 1872 (nodename (completing-read prompt #'Info-read-node-name-1 nil t)))
1873 (if (equal nodename "") 1873 (if (equal nodename "")
1874 (Info-read-node-name prompt) 1874 (Info-read-node-name prompt)
1875 nodename))) 1875 nodename)))
@@ -2583,7 +2583,8 @@ new buffer."
2583 "Follow reference named: ") 2583 "Follow reference named: ")
2584 completions nil t))) 2584 completions nil t)))
2585 (list (if (equal input "") 2585 (list (if (equal input "")
2586 default input) current-prefix-arg)) 2586 default input)
2587 current-prefix-arg))
2587 (user-error "No cross-references in this node")))) 2588 (user-error "No cross-references in this node"))))
2588 2589
2589 (unless footnotename 2590 (unless footnotename
@@ -2703,6 +2704,7 @@ Because of ambiguities, this should be concatenated with something like
2703 (user-error "No menu in this node")) 2704 (user-error "No menu in this node"))
2704 (cond 2705 (cond
2705 ((eq (car-safe action) 'boundaries) nil) 2706 ((eq (car-safe action) 'boundaries) nil)
2707 ((eq action 'metadata) `(metadata (category . info-menu)))
2706 ((eq action 'lambda) 2708 ((eq action 'lambda)
2707 (re-search-forward 2709 (re-search-forward
2708 (concat "\n\\* +" (regexp-quote string) ":") nil t)) 2710 (concat "\n\\* +" (regexp-quote string) ":") nil t))
@@ -2783,15 +2785,7 @@ new buffer."
2783 default) 2785 default)
2784 "Menu item: ") 2786 "Menu item: ")
2785 #'Info-complete-menu-item nil t nil nil 2787 #'Info-complete-menu-item nil t nil nil
2786 default))) 2788 default))))
2787 ;; we rely on the fact that completing-read accepts an input
2788 ;; of "" even when the require-match argument is true and ""
2789 ;; is not a valid possibility
2790 (if (string= item "")
2791 (if default
2792 (setq item default)
2793 ;; ask again
2794 (setq item nil))))
2795 (list item current-prefix-arg)))) 2789 (list item current-prefix-arg))))
2796 ;; there is a problem here in that if several menu items have the same 2790 ;; there is a problem here in that if several menu items have the same
2797 ;; name you can only go to the node of the first with this command. 2791 ;; name you can only go to the node of the first with this command.
@@ -3308,7 +3302,7 @@ Give an empty topic name to go to the Index node itself."
3308 (unwind-protect 3302 (unwind-protect
3309 (with-current-buffer Info-complete-menu-buffer 3303 (with-current-buffer Info-complete-menu-buffer
3310 (Info-goto-index) 3304 (Info-goto-index)
3311 (completing-read "Index topic: " 'Info-complete-menu-item)) 3305 (completing-read "Index topic: " #'Info-complete-menu-item))
3312 (kill-buffer Info-complete-menu-buffer))))) 3306 (kill-buffer Info-complete-menu-buffer)))))
3313 (if (equal Info-current-file "dir") 3307 (if (equal Info-current-file "dir")
3314 (error "The Info directory node has no index; use m to select a manual")) 3308 (error "The Info directory node has no index; use m to select a manual"))
@@ -3482,7 +3476,7 @@ search results."
3482 (unwind-protect 3476 (unwind-protect
3483 (with-current-buffer Info-complete-menu-buffer 3477 (with-current-buffer Info-complete-menu-buffer
3484 (Info-goto-index) 3478 (Info-goto-index)
3485 (completing-read "Index topic: " 'Info-complete-menu-item)) 3479 (completing-read "Index topic: " #'Info-complete-menu-item))
3486 (kill-buffer Info-complete-menu-buffer))))) 3480 (kill-buffer Info-complete-menu-buffer)))))
3487 (if (equal topic "") 3481 (if (equal topic "")
3488 (Info-find-node Info-current-file "*Index*") 3482 (Info-find-node Info-current-file "*Index*")