aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2014-11-26 23:00:42 +0100
committerStephen Berman2014-11-26 23:00:42 +0100
commitebf026bdd0afb368a8d5f89f29ef792ea21560e5 (patch)
tree3302d591098ffc3d1e4e51237cc2df7a3a288976
parentd9ad26a6df4110d32454496d2d864fb9a15d6d00 (diff)
downloademacs-ebf026bdd0afb368a8d5f89f29ef792ea21560e5.tar.gz
emacs-ebf026bdd0afb368a8d5f89f29ef792ea21560e5.zip
todo-mode.el: Handle calling todo-mode interactively.
Fixes: debbugs:19112 * calendar/todo-mode.el (todo-mode): If called interactively, just display a message saying to call todo-show to enter Todo mode.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/calendar/todo-mode.el35
2 files changed, 24 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 351472d02fd..0741bfd41c9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12014-11-26 Stephen Berman <stephen.berman@gmx.net>
2
3 * calendar/todo-mode.el (todo-mode): If called interactively, just
4 display a message saying to call todo-show to enter Todo mode
5 (Bug#19112).
6
12014-11-24 Dmitry Gutov <dgutov@yandex.ru> 72014-11-24 Dmitry Gutov <dgutov@yandex.ru>
2 8
3 * vc/vc-hg.el (vc-hg-dir-status-files): Include ignored files. 9 * vc/vc-hg.el (vc-hg-dir-status-files): Include ignored files.
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index ab12ebc17f0..ed7c60776b2 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -6573,23 +6573,24 @@ Added to `window-configuration-change-hook' in Todo mode."
6573 "Major mode for displaying, navigating and editing todo lists. 6573 "Major mode for displaying, navigating and editing todo lists.
6574 6574
6575\\{todo-mode-map}" 6575\\{todo-mode-map}"
6576 ;; (easy-menu-add todo-menu) 6576 (if (called-interactively-p 'any)
6577 (todo-modes-set-1) 6577 (message "Type `M-x todo-show' to enter Todo mode")
6578 (todo-modes-set-2) 6578 (todo-modes-set-1)
6579 (todo-modes-set-3) 6579 (todo-modes-set-2)
6580 ;; Initialize todo-current-todo-file. 6580 (todo-modes-set-3)
6581 (when (member (file-truename (buffer-file-name)) 6581 ;; Initialize todo-current-todo-file.
6582 (funcall todo-files-function)) 6582 (when (member (file-truename (buffer-file-name))
6583 (setq-local todo-current-todo-file (file-truename (buffer-file-name)))) 6583 (funcall todo-files-function))
6584 (setq-local todo-show-done-only nil) 6584 (setq-local todo-current-todo-file (file-truename (buffer-file-name))))
6585 (setq-local todo-categories-with-marks nil) 6585 (setq-local todo-show-done-only nil)
6586 ;; (add-hook 'find-file-hook 'todo-add-to-buffer-list nil t) 6586 (setq-local todo-categories-with-marks nil)
6587 (add-hook 'post-command-hook 'todo-update-buffer-list nil t) 6587 ;; (add-hook 'find-file-hook 'todo-add-to-buffer-list nil t)
6588 (when todo-show-current-file 6588 (add-hook 'post-command-hook 'todo-update-buffer-list nil t)
6589 (add-hook 'pre-command-hook 'todo-show-current-file nil t)) 6589 (when todo-show-current-file
6590 (add-hook 'window-configuration-change-hook 6590 (add-hook 'pre-command-hook 'todo-show-current-file nil t))
6591 'todo-reset-and-enable-done-separator nil t) 6591 (add-hook 'window-configuration-change-hook
6592 (add-hook 'kill-buffer-hook 'todo-reset-global-current-todo-file nil t)) 6592 'todo-reset-and-enable-done-separator nil t)
6593 (add-hook 'kill-buffer-hook 'todo-reset-global-current-todo-file nil t)))
6593 6594
6594(put 'todo-archive-mode 'mode-class 'special) 6595(put 'todo-archive-mode 'mode-class 'special)
6595 6596