+2013-04-27 Stephen Berman <stephen.berman@gmx.net>
+
+ * todos.el (todos-edit-multiline-item): Make a no-op when point is
+ not on an item.
+
2013-04-24 Stephen Berman <stephen.berman@gmx.net>
* todos.el (todos-check-format): Add check of well-formedness of
Use of newlines invokes `todos-indent' to insure compliance with
the format of Diary entries."
(interactive)
- (let ((buf todos-edit-buffer))
- (set-window-buffer (selected-window)
- (set-buffer (make-indirect-buffer (buffer-name) buf)))
- (narrow-to-region (todos-item-start) (todos-item-end))
- (todos-edit-mode)
- (message "%s" (substitute-command-keys
- (concat "Type \\[todos-edit-quit] "
- "to return to Todos mode.\n")))))
+ (when (todos-item-string)
+ (let ((buf todos-edit-buffer))
+ (set-window-buffer (selected-window)
+ (set-buffer (make-indirect-buffer (buffer-name) buf)))
+ (narrow-to-region (todos-item-start) (todos-item-end))
+ (todos-edit-mode)
+ (message "%s" (substitute-command-keys
+ (concat "Type \\[todos-edit-quit] "
+ "to return to Todos mode.\n"))))))
(defun todos-edit-multiline (&optional item) ;FIXME: not item editing command
"" ;FIXME