mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
emacs: don't add space to tag completion candidates.
Apparently this messes up various third party completion frameworks. This change does mean that users will have to hit space after completing a tag change in order to enter another change. As a bonus, remove the call to #'delete, since completing-read-multiple already promises to remove empty strings.
This commit is contained in:
parent
efa7f35d4a
commit
20b2150406
1 changed files with 3 additions and 11 deletions
|
@ -429,17 +429,9 @@ initial input in the minibuffer."
|
||||||
(set-keymap-parent map crm-local-completion-map)
|
(set-keymap-parent map crm-local-completion-map)
|
||||||
(define-key map " " 'self-insert-command)
|
(define-key map " " 'self-insert-command)
|
||||||
map)))
|
map)))
|
||||||
(delete "" (completing-read-multiple
|
(completing-read-multiple prompt tag-list
|
||||||
prompt
|
nil nil initial-input
|
||||||
;; Append the separator to each completion so when the
|
'notmuch-read-tag-changes-history)))
|
||||||
;; user completes a tag they can immediately begin
|
|
||||||
;; entering another. `completing-read-multiple'
|
|
||||||
;; ultimately splits the input on crm-separator, so we
|
|
||||||
;; don't need to strip this back off (we just need to
|
|
||||||
;; delete "empty" entries caused by trailing spaces).
|
|
||||||
(mapcar (lambda (tag-op) (concat tag-op crm-separator)) tag-list)
|
|
||||||
nil nil initial-input
|
|
||||||
'notmuch-read-tag-changes-history))))
|
|
||||||
|
|
||||||
;;; Tagging
|
;;; Tagging
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue