+2013-02-11 Stephen Berman <stephen.berman@gmx.net>
+
+ * 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.
+
2013-02-08 Stephen Berman <stephen.berman@gmx.net>
* calendar/todos.el (todos-edit-multiline-item): Revert to using
(defun todos-prefix-overlay ()
"Return this item's prefix overlay."
+ ;; Why doesn't this work?
+ ;; (get-char-property-and-overlay lbp 'before-string)
(let* ((lbp (line-beginning-position))
(ovs (overlays-in lbp lbp)))
(car ovs)))
;; (todos-repair-categories-sexp)
;; Compare (todos-make-categories-list t) with sexp and if
;; different ask (todos-update-categories-sexp) ?
+ (rename-buffer (file-name-nondirectory todos-current-todos-file))
(todos-mode)
(let* ((cat-beg (concat "^" (regexp-quote todos-category-beg)
"\\(.*\\)$"))
(match-string-no-properties 1)))))
(todos-category-number cat)
(todos-category-select)
- (recenter)))))
+ (goto-char (point-min))))))
(defun todos-edit-item-header-1 (what &optional inc)
"Function underlying commands to edit item date/time header.
(let ((todos-show-with-done (or done-items done-item)))
(todos-category-select))
(goto-char nmark)
- ;; If item is moved to end of category, make sure the
- ;; items above it are displayed in the window.
+ ;; If item is moved to end of (just first?) category, make
+ ;; sure the items above it are displayed in the window.
(recenter))
;; User quit before setting priority of todo item(s), so
;; return to starting category.