aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/NEWS16
-rw-r--r--lisp/minibuffer.el18
2 files changed, 20 insertions, 14 deletions
diff --git a/etc/NEWS b/etc/NEWS
index e14ab4aed27..03a40c11c5b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -639,13 +639,15 @@ then all these keys have their usual meaning in the minibuffer.
639This option is supported for in-buffer completion as well. 639This option is supported for in-buffer completion as well.
640 640
641*** Selected completion candidates are deselected on typing. 641*** Selected completion candidates are deselected on typing.
642When a user types, point in the *Completions* window will be moved off 642When you type at the minibuffer prompt, the current completion
643any completion candidates. 'minibuffer-choose-completion' ('M-RET') 643candidate will be un-highlighted,and point in the *Completions* window
644will still choose a previously-selected completion candidate, but the 644will be moved off that candidate. 'minibuffer-choose-completion'
645new command 'minibuffer-choose-completion-or-exit' (bound by 645('M-RET') will still choose a previously-selected completion
646'minibuffer-visible-completions') will exit with the minibuffer 646candidate, but the new command 'minibuffer-choose-completion-or-exit'
647contents instead. The deselection behavior can be controlled with the 647(bound to 'RET' by 'minibuffer-visible-completions') will exit with
648new user option 'completion-auto-deselect'. 648the minibuffer contents instead. This deselection behavior can be
649controlled with the new user option 'completion-auto-deselect', which
650is t by default.
649 651
650*** New value 'historical' for user option 'completions-sort' 652*** New value 'historical' for user option 'completions-sort'
651When 'completions-sort' is set to 'historical', completion candidates 653When 'completions-sort' is set to 'historical', completion candidates
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 2ddaf0af120..d35a487a6cf 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -961,6 +961,8 @@ is at its default value `grow-only'."
961 (reverse multi-message-list) 961 (reverse multi-message-list)
962 multi-message-separator))) 962 multi-message-separator)))
963 963
964(defvar touch-screen-current-tool)
965
964(defun clear-minibuffer-message () 966(defun clear-minibuffer-message ()
965 "Clear message temporarily shown in the minibuffer. 967 "Clear message temporarily shown in the minibuffer.
966Intended to be called via `clear-message-function'." 968Intended to be called via `clear-message-function'."
@@ -2433,12 +2435,15 @@ These include:
2433 (fit-window-to-buffer win completions-max-height))) 2435 (fit-window-to-buffer win completions-max-height)))
2434 2436
2435(defcustom completion-auto-deselect t 2437(defcustom completion-auto-deselect t
2436 "If non-nil, deselect the selected completion candidate when you type. 2438 "If non-nil, deselect current completion candidate when you type in minibuffer.
2437 2439
2438A non-nil value means that after typing, point in *Completions* 2440A non-nil value means that after typing at the minibuffer prompt,
2439will be moved off any completion candidates. This means 2441any completion candidate highlighted in *Completions* window (to
2440`minibuffer-choose-completion-or-exit' will exit with the 2442indicate that it is the selected candidate) will be un-highlighted,
2441minibuffer's current contents, instead of a completion candidate." 2443and point in the *Completions* window will be moved off such a candidate.
2444This means that `RET' (`minibuffer-choose-completion-or-exit') will exit
2445the minubuffer with the minibuffer's current contents, instead of the
2446selected completion candidate."
2442 :type '(choice (const :tag "Candidates in *Completions* stay selected as you type" nil) 2447 :type '(choice (const :tag "Candidates in *Completions* stay selected as you type" nil)
2443 (const :tag "Typing deselects any completion candidate in *Completions*" t)) 2448 (const :tag "Typing deselects any completion candidate in *Completions*" t))
2444 :version "30.1") 2449 :version "30.1")
@@ -3101,7 +3106,6 @@ displaying the *Completions* buffer exists."
3101 "<down>" (minibuffer-visible-completions-bind #'minibuffer-next-line-completion) 3106 "<down>" (minibuffer-visible-completions-bind #'minibuffer-next-line-completion)
3102 "RET" (minibuffer-visible-completions-bind #'minibuffer-choose-completion-or-exit) 3107 "RET" (minibuffer-visible-completions-bind #'minibuffer-choose-completion-or-exit)
3103 "C-g" (minibuffer-visible-completions-bind #'minibuffer-hide-completions)) 3108 "C-g" (minibuffer-visible-completions-bind #'minibuffer-hide-completions))
3104
3105 3109
3106;;; Completion tables. 3110;;; Completion tables.
3107 3111