aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2013-02-11 22:54:51 +0100
committerStephen Berman2013-02-11 22:54:51 +0100
commitcb2077b4335c641080db8aa8d36cb8d3f37121ca (patch)
tree99796f2137e5f39a9bb07423471ec3a67151fae9
parent65caf482fc63d8fe7b7e7d9fb376363bd4031a75 (diff)
downloademacs-cb2077b4335c641080db8aa8d36cb8d3f37121ca.tar.gz
emacs-cb2077b4335c641080db8aa8d36cb8d3f37121ca.zip
* calendar/todos.el (todos-edit-quit): On quitting file editing,
rename buffer back to current Todos file. After selecting category, put point at top instead of recentering.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/calendar/todos.el9
2 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 174c7fc4fa0..15ad2b888a9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12013-02-11 Stephen Berman <stephen.berman@gmx.net>
2
3 * calendar/todos.el (todos-edit-quit): On quitting file editing,
4 rename buffer back to current Todos file. After selecting
5 category, put point at top instead of recentering.
6
12013-02-08 Stephen Berman <stephen.berman@gmx.net> 72013-02-08 Stephen Berman <stephen.berman@gmx.net>
2 8
3 * calendar/todos.el (todos-edit-multiline-item): Revert to using 9 * calendar/todos.el (todos-edit-multiline-item): Revert to using
diff --git a/lisp/calendar/todos.el b/lisp/calendar/todos.el
index b49b46fa64d..a67a98e27b0 100644
--- a/lisp/calendar/todos.el
+++ b/lisp/calendar/todos.el
@@ -1547,6 +1547,8 @@ The final element is \"*\", indicating an unspecified month.")
1547 1547
1548(defun todos-prefix-overlay () 1548(defun todos-prefix-overlay ()
1549 "Return this item's prefix overlay." 1549 "Return this item's prefix overlay."
1550 ;; Why doesn't this work?
1551 ;; (get-char-property-and-overlay lbp 'before-string)
1550 (let* ((lbp (line-beginning-position)) 1552 (let* ((lbp (line-beginning-position))
1551 (ovs (overlays-in lbp lbp))) 1553 (ovs (overlays-in lbp lbp)))
1552 (car ovs))) 1554 (car ovs)))
@@ -4917,6 +4919,7 @@ in the number or names of categories."
4917 ;; (todos-repair-categories-sexp) 4919 ;; (todos-repair-categories-sexp)
4918 ;; Compare (todos-make-categories-list t) with sexp and if 4920 ;; Compare (todos-make-categories-list t) with sexp and if
4919 ;; different ask (todos-update-categories-sexp) ? 4921 ;; different ask (todos-update-categories-sexp) ?
4922 (rename-buffer (file-name-nondirectory todos-current-todos-file))
4920 (todos-mode) 4923 (todos-mode)
4921 (let* ((cat-beg (concat "^" (regexp-quote todos-category-beg) 4924 (let* ((cat-beg (concat "^" (regexp-quote todos-category-beg)
4922 "\\(.*\\)$")) 4925 "\\(.*\\)$"))
@@ -4929,7 +4932,7 @@ in the number or names of categories."
4929 (match-string-no-properties 1))))) 4932 (match-string-no-properties 1)))))
4930 (todos-category-number cat) 4933 (todos-category-number cat)
4931 (todos-category-select) 4934 (todos-category-select)
4932 (recenter))))) 4935 (goto-char (point-min))))))
4933 4936
4934(defun todos-edit-item-header-1 (what &optional inc) 4937(defun todos-edit-item-header-1 (what &optional inc)
4935 "Function underlying commands to edit item date/time header. 4938 "Function underlying commands to edit item date/time header.
@@ -5569,8 +5572,8 @@ section in the category moved to."
5569 (let ((todos-show-with-done (or done-items done-item))) 5572 (let ((todos-show-with-done (or done-items done-item)))
5570 (todos-category-select)) 5573 (todos-category-select))
5571 (goto-char nmark) 5574 (goto-char nmark)
5572 ;; If item is moved to end of category, make sure the 5575 ;; If item is moved to end of (just first?) category, make
5573 ;; items above it are displayed in the window. 5576 ;; sure the items above it are displayed in the window.
5574 (recenter)) 5577 (recenter))
5575 ;; User quit before setting priority of todo item(s), so 5578 ;; User quit before setting priority of todo item(s), so
5576 ;; return to starting category. 5579 ;; return to starting category.