diff options
| author | Eli Zaretskii | 2023-12-08 10:42:22 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-12-08 10:42:22 +0200 |
| commit | 643e06dbe59fcff4fd3d86c8a3a0a36cd88b0790 (patch) | |
| tree | 387b18c51b4a89c2e120832d7b8d697e3e0b7165 | |
| parent | 3cf7d32b90ad32321c141bb2a34a670d2d6df5b7 (diff) | |
| download | emacs-643e06dbe59fcff4fd3d86c8a3a0a36cd88b0790.tar.gz emacs-643e06dbe59fcff4fd3d86c8a3a0a36cd88b0790.zip | |
; Fix documentation of 'completion-auto-deselect'
* lisp/minibuffer.el (completion-auto-deselect): Doc fix.
* etc/NEWS: Improve wording of corresponding entry.
| -rw-r--r-- | etc/NEWS | 16 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 18 |
2 files changed, 20 insertions, 14 deletions
| @@ -639,13 +639,15 @@ then all these keys have their usual meaning in the minibuffer. | |||
| 639 | This option is supported for in-buffer completion as well. | 639 | This 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. |
| 642 | When a user types, point in the *Completions* window will be moved off | 642 | When you type at the minibuffer prompt, the current completion |
| 643 | any completion candidates. 'minibuffer-choose-completion' ('M-RET') | 643 | candidate will be un-highlighted,and point in the *Completions* window |
| 644 | will still choose a previously-selected completion candidate, but the | 644 | will be moved off that candidate. 'minibuffer-choose-completion' |
| 645 | new 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 | 646 | candidate, but the new command 'minibuffer-choose-completion-or-exit' |
| 647 | contents instead. The deselection behavior can be controlled with the | 647 | (bound to 'RET' by 'minibuffer-visible-completions') will exit with |
| 648 | new user option 'completion-auto-deselect'. | 648 | the minibuffer contents instead. This deselection behavior can be |
| 649 | controlled with the new user option 'completion-auto-deselect', which | ||
| 650 | is t by default. | ||
| 649 | 651 | ||
| 650 | *** New value 'historical' for user option 'completions-sort' | 652 | *** New value 'historical' for user option 'completions-sort' |
| 651 | When 'completions-sort' is set to 'historical', completion candidates | 653 | When '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. |
| 966 | Intended to be called via `clear-message-function'." | 968 | Intended 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 | ||
| 2438 | A non-nil value means that after typing, point in *Completions* | 2440 | A non-nil value means that after typing at the minibuffer prompt, |
| 2439 | will be moved off any completion candidates. This means | 2441 | any completion candidate highlighted in *Completions* window (to |
| 2440 | `minibuffer-choose-completion-or-exit' will exit with the | 2442 | indicate that it is the selected candidate) will be un-highlighted, |
| 2441 | minibuffer's current contents, instead of a completion candidate." | 2443 | and point in the *Completions* window will be moved off such a candidate. |
| 2444 | This means that `RET' (`minibuffer-choose-completion-or-exit') will exit | ||
| 2445 | the minubuffer with the minibuffer's current contents, instead of the | ||
| 2446 | selected 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 | ||