Fix todo-mode use of minibuffer completion keymap (bug#23695).
* lisp/calendar/todo-mode.el (todo-read-category): Don't override minibuffer-local-completion-map globally (bug#23695). Bind <SPC> key to self-insert-command.
This commit is contained in:
parent
27dec5264f
commit
d7084f2260
1 changed files with 3 additions and 2 deletions
|
@ -5750,8 +5750,9 @@ With non-nil argument FILE prompt for a file and complete only
|
|||
against categories in that file; otherwise complete against all
|
||||
categories from `todo-category-completions-files'."
|
||||
;; Allow SPC to insert spaces, for adding new category names.
|
||||
(let ((map minibuffer-local-completion-map))
|
||||
(define-key map " " nil)
|
||||
(let ((minibuffer-local-completion-map
|
||||
(copy-keymap minibuffer-local-completion-map)))
|
||||
(define-key minibuffer-local-completion-map " " 'self-insert-command)
|
||||
(let* ((add (eq match-type 'add))
|
||||
(archive (eq match-type 'archive))
|
||||
(file0 (when (and file (> (length todo-files) 1))
|
||||
|
|
Loading…
Add table
Reference in a new issue