]> code.delx.au - gnu-emacs/commitdiff
* calendar/todo-mode.el (todo-edit-item--next-key): If next key is
authorStephen Berman <stephen.berman@gmx.net>
Fri, 25 Jul 2014 21:53:52 +0000 (23:53 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Fri, 25 Jul 2014 21:53:52 +0000 (23:53 +0200)
not a character, ignore it instead of raising an error.

lisp/ChangeLog
lisp/calendar/todo-mode.el

index 7869bee211c8cf3f0c9bcd87fc68d7f962428910..b1c21261017ca087c4b316f0d419e32a1eeddacb 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-25  Stephen Berman  <stephen.berman@gmx.net>
+
+       * calendar/todo-mode.el (todo-edit-item--next-key): If next key is
+       not a character, ignore it instead of raising an error.
+
 2014-07-25  Stephen Berman  <stephen.berman@gmx.net>
 
        * calendar/todo-mode.el: Fix handling of marked items and make
index 60f798792d1cf08f07b0d79269891993223cf495..6a857a10fdad64b8dde6d396f52b82bae41747e5 100644 (file)
@@ -5551,8 +5551,8 @@ already entered and those still available."
                                                        '(add/edit delete))
                                              " comment"))))
                          params " "))
-        (this-key (char-to-string
-                   (read-key (concat todo-edit-item--prompt p->k))))
+        (this-key (let ((key (read-key (concat todo-edit-item--prompt p->k))))
+                    (and (characterp key) (char-to-string key))))
         (this-param (car (rassoc this-key params))))
     (pcase this-param
       (`edit (todo-edit-item--text))