aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/info.el20
-rw-r--r--lisp/minibuffer.el3
3 files changed, 13 insertions, 14 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 76c9dbc3315..72818278781 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -386,6 +386,10 @@ end of the word).
386 386
387* Changes in Specialized Modes and Packages in Emacs 26.1 387* Changes in Specialized Modes and Packages in Emacs 26.1
388 388
389*** Info menu and index completion uses substring completion by default.
390This can be customized via the `info-menu` category in
391completion-category-override.
392
389+++ 393+++
390*** The ancestor buffer is shown by default in 3way merges. 394*** The ancestor buffer is shown by default in 3way merges.
391A new option ediff-show-ancestor and a new toggle 395A new option ediff-show-ancestor and a new toggle
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*")
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 00722ec4b15..0377cd549a2 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -834,7 +834,8 @@ styles for specific categories, such as files, buffers, etc."
834(defvar completion-category-defaults 834(defvar completion-category-defaults
835 '((buffer (styles . (basic substring))) 835 '((buffer (styles . (basic substring)))
836 (unicode-name (styles . (basic substring))) 836 (unicode-name (styles . (basic substring)))
837 (project-file (styles . (basic substring)))) 837 (project-file (styles . (basic substring)))
838 (info-menu (styles . (basic substring))))
838 "Default settings for specific completion categories. 839 "Default settings for specific completion categories.
839Each entry has the shape (CATEGORY . ALIST) where ALIST is 840Each entry has the shape (CATEGORY . ALIST) where ALIST is
840an association list that can specify properties such as: 841an association list that can specify properties such as: