diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-01-10 15:01:12 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-01-15 06:49:07 -0400 |
| commit | a2bf29ad359539ed48a75ebb593897382d9a1de4 (patch) | |
| tree | dfcd6afabca3e611bd8c776797c13065f7c1cc66 | |
| parent | 055294454fb944a2aec062fbb974665b02d9eaeb (diff) | |
emacs: notmuch-address-expand-name: use the actual initial-input
Users may type some text into the buffer on an address line, before
actually invoking address completion. We now use that text as the
initial input when we begin address completion.
Previously we did knowingly replace the actual initial input with some
completion candidate that happens to match. Which candidate is used is
essentially random, at least when the actual initial input is short.
As a result users very often had to begin completion by deleting the
less than helpful "initial input".
| -rw-r--r-- | emacs/notmuch-address.el | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/emacs/notmuch-address.el b/emacs/notmuch-address.el index 6e136473..f0af6667 100644 --- a/emacs/notmuch-address.el +++ b/emacs/notmuch-address.el @@ -244,14 +244,8 @@ requiring external commands." (t (funcall notmuch-address-selection-function (format "Address (%s matches): " num-options) - ;; We put the first match as the initial - ;; input; we put all the matches as - ;; possible completions, moving the - ;; first match to the end of the list - ;; makes cursor up/down in the list work - ;; better. - (append (cdr options) (list (car options))) - (car options)))))) + options + orig))))) (if chosen (progn (push chosen notmuch-address-history) |
