[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 5d4d8a3: Improve last todo-mode fix
From: |
Stephen Berman |
Subject: |
[Emacs-diffs] emacs-25 5d4d8a3: Improve last todo-mode fix |
Date: |
Wed, 15 Jun 2016 18:08:32 +0000 (UTC) |
branch: emacs-25
commit 5d4d8a3932f8867f79effeafa4c337b8e4208fe8
Author: Stephen Berman <address@hidden>
Commit: Stephen Berman <address@hidden>
Improve last todo-mode fix
* lisp/calendar/todo-mode.el (todo-read-category): Use
set-keymap-parent instead of copy-keymap, and default (as
previously) to the global binding (for rationale, see
http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00217.html).
---
lisp/calendar/todo-mode.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index f0d4bc5..7cfec13 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -5751,8 +5751,9 @@ 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 ((minibuffer-local-completion-map
- (copy-keymap minibuffer-local-completion-map)))
- (define-key minibuffer-local-completion-map " " 'self-insert-command)
+ (let ((map (make-sparse-keymap)))
+ (set-keymap-parent map minibuffer-local-completion-map)
+ (define-key map " " nil))))
(let* ((add (eq match-type 'add))
(archive (eq match-type 'archive))
(file0 (when (and file (> (length todo-files) 1))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 5d4d8a3: Improve last todo-mode fix,
Stephen Berman <=