diff options
| author | Jimmy Aguilar Mena | 2022-03-13 20:42:08 +0100 |
|---|---|---|
| committer | Jimmy Aguilar Mena | 2022-03-13 20:42:08 +0100 |
| commit | 3f17e3acb3f0cff731c555f2abb97c763f005fc4 (patch) | |
| tree | f9e771a15b520feb6a51c47cb376ef2e2157ed73 /lisp | |
| parent | e303fa3e605bd9d0f43a5acaa39e9a24ac44e1db (diff) | |
| download | emacs-3f17e3acb3f0cff731c555f2abb97c763f005fc4.tar.gz emacs-3f17e3acb3f0cff731c555f2abb97c763f005fc4.zip | |
Extend completion-auto-help 'always and 'visible.
Make them behave the same also with exact but not single completion.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/minibuffer.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 878a1104ebe..d6d40d5b251 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -1353,18 +1353,17 @@ when the buffer's text is already an exact match." | |||
| 1353 | (minibuffer-force-complete beg end)) | 1353 | (minibuffer-force-complete beg end)) |
| 1354 | (completed | 1354 | (completed |
| 1355 | (cond | 1355 | (cond |
| 1356 | (exact | ||
| 1357 | ;; If completion did not put point at end of field, | ||
| 1358 | ;; it's a sign that completion is not finished. | ||
| 1359 | (minibuffer-hide-completions) | ||
| 1360 | (completion--done completion | ||
| 1361 | (if (< comp-pos (length completion)) | ||
| 1362 | 'exact 'unknown))) | ||
| 1363 | ((pcase completion-auto-help | 1356 | ((pcase completion-auto-help |
| 1364 | ('visible (get-buffer-window "*Completions*" 0)) | 1357 | ('visible (get-buffer-window "*Completions*" 0)) |
| 1365 | ('always t)) | 1358 | ('always t)) |
| 1366 | (minibuffer-completion-help beg end)) | 1359 | (minibuffer-completion-help beg end)) |
| 1367 | (t (minibuffer-hide-completions)))) | 1360 | (t (minibuffer-hide-completions) |
| 1361 | (when exact | ||
| 1362 | ;; If completion did not put point at end of field, | ||
| 1363 | ;; it's a sign that completion is not finished. | ||
| 1364 | (completion--done completion | ||
| 1365 | (if (< comp-pos (length completion)) | ||
| 1366 | 'exact 'unknown)))))) | ||
| 1368 | ;; Show the completion table, if requested. | 1367 | ;; Show the completion table, if requested. |
| 1369 | ((not exact) | 1368 | ((not exact) |
| 1370 | (if (pcase completion-auto-help | 1369 | (if (pcase completion-auto-help |