aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2014-07-25 23:53:52 +0200
committerStephen Berman2014-07-25 23:53:52 +0200
commite72e6612763d178bc283e8c8ec72325b85aa2384 (patch)
tree6064652c6de1efcd00ddc164086d893411b76787
parent6dd006a86d401a494efd48a31c5fe6e511e42b52 (diff)
downloademacs-e72e6612763d178bc283e8c8ec72325b85aa2384.tar.gz
emacs-e72e6612763d178bc283e8c8ec72325b85aa2384.zip
* calendar/todo-mode.el (todo-edit-item--next-key): If next key is
not a character, ignore it instead of raising an error.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calendar/todo-mode.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7869bee211c..b1c21261017 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12014-07-25 Stephen Berman <stephen.berman@gmx.net> 12014-07-25 Stephen Berman <stephen.berman@gmx.net>
2 2
3 * calendar/todo-mode.el (todo-edit-item--next-key): If next key is
4 not a character, ignore it instead of raising an error.
5
62014-07-25 Stephen Berman <stephen.berman@gmx.net>
7
3 * calendar/todo-mode.el: Fix handling of marked items and make 8 * calendar/todo-mode.el: Fix handling of marked items and make
4 minor code improvements. 9 minor code improvements.
5 (todo-edit-item): If there are marked items, ensure user can only 10 (todo-edit-item): If there are marked items, ensure user can only
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index 60f798792d1..6a857a10fda 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -5551,8 +5551,8 @@ already entered and those still available."
5551 '(add/edit delete)) 5551 '(add/edit delete))
5552 " comment")))) 5552 " comment"))))
5553 params " ")) 5553 params " "))
5554 (this-key (char-to-string 5554 (this-key (let ((key (read-key (concat todo-edit-item--prompt p->k))))
5555 (read-key (concat todo-edit-item--prompt p->k)))) 5555 (and (characterp key) (char-to-string key))))
5556 (this-param (car (rassoc this-key params)))) 5556 (this-param (car (rassoc this-key params))))
5557 (pcase this-param 5557 (pcase this-param
5558 (`edit (todo-edit-item--text)) 5558 (`edit (todo-edit-item--text))