]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix todo-mode use of minibuffer completion keymap (bug#23695).
authorStephen Berman <stephen.berman@gmx.net>
Tue, 14 Jun 2016 21:43:20 +0000 (23:43 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Tue, 14 Jun 2016 21:43:20 +0000 (23:43 +0200)
* 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.

lisp/calendar/todo-mode.el

index 8e7525860530f3d6f9bb743f147ba610e692f84b..f0d4bc5961b9ae7bd3fd8d3ade0bc4f70f94314b 100644 (file)
@@ -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))