From: Stephen Berman Date: Fri, 17 May 2013 14:26:58 +0000 (+0200) Subject: * todos.el (todos-category-completions): Restore point after X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2051 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=60c9e803176c0635724a372f74752103e803a534;p=emacs.git * todos.el (todos-category-completions): Restore point after ensuring category is properly displayed. --- diff --git a/lisp/calendar/ChangeLog b/lisp/calendar/ChangeLog index 33494043d1a..5a6bab346fc 100644 --- a/lisp/calendar/ChangeLog +++ b/lisp/calendar/ChangeLog @@ -1,3 +1,8 @@ +2013-05-17 Stephen Berman + + * todos.el (todos-category-completions): Restore point after + ensuring category is properly displayed. + 2013-05-16 Stephen Berman * todos.el (todos-filtered-items-mode-map): Update some bindings. diff --git a/lisp/calendar/todos.el b/lisp/calendar/todos.el index 33f413d4cf3..855ae7753e5 100644 --- a/lisp/calendar/todos.el +++ b/lisp/calendar/todos.el @@ -1216,7 +1216,7 @@ or, with non-nil ARCHIVE, the current archive file." (goto-char (point-min)) (setq done (re-search-forward todos-done-string-start nil t)))) (let ((todos-show-with-done done)) - (todos-category-select))) + (save-excursion (todos-category-select)))) (save-excursion (save-restriction (widen)