aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2011-12-03 00:46:31 +0100
committerStephen Berman2011-12-03 00:46:31 +0100
commit697bd4a3585bd7d9ef66d670d21b72a3e9a36e6a (patch)
tree0a6c510201ea162a3106b2767ca8eeeab405ffad
parent58c7641d1b069be3ead47dbe4a44c8360ef8d1f2 (diff)
downloademacs-697bd4a3585bd7d9ef66d670d21b72a3e9a36e6a.tar.gz
emacs-697bd4a3585bd7d9ef66d670d21b72a3e9a36e6a.zip
* calendar/todos.el (todos-item-start): Restore commented out code
to prevent wrongly moving point in widened buffer.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/calendar/todos.el10
2 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0ee809b5d2f..9fe801d3f06 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12012-09-19 Stephen Berman <stephen.berman@gmx.net> 12012-09-19 Stephen Berman <stephen.berman@gmx.net>
2 2
3 * calendar/todos.el (todos-item-start): Restore commented out code
4 to prevent wrongly moving point in widened buffer.
5
62012-09-19 Stephen Berman <stephen.berman@gmx.net>
7
3 * calendar/todos.el: Remove old commentary from todo-mode.el; add 8 * calendar/todos.el: Remove old commentary from todo-mode.el; add
4 and revise further doc strings and comments; require cl.el at 9 and revise further doc strings and comments; require cl.el at
5 compile time for remove-duplicates; use function powerset from 10 compile time for remove-duplicates; use function powerset from
diff --git a/lisp/calendar/todos.el b/lisp/calendar/todos.el
index 34a1c10df70..457e49c267e 100644
--- a/lisp/calendar/todos.el
+++ b/lisp/calendar/todos.el
@@ -3369,10 +3369,12 @@ below the todo items."
3369 3369
3370(defun todos-item-start () 3370(defun todos-item-start ()
3371 "Move to start of current Todos item and return its position." 3371 "Move to start of current Todos item and return its position."
3372 (unless (looking-at "^$") 3372 (unless (or
3373 ;; (or (looking-at "^$") ; last item or between done and not done 3373 ;; Point is either on last item in this category or on the empty
3374 ;; ;; FIXME: need this? (was needed by abandoned todos-count-items) 3374 ;; line between done and not done items.
3375 ;; (looking-at (regexp-quote todos-category-beg))) 3375 (looking-at "^$")
3376 ;; There are no done items in this category yet.
3377 (looking-at (regexp-quote todos-category-beg)))
3376 (goto-char (line-beginning-position)) 3378 (goto-char (line-beginning-position))
3377 (while (not (looking-at todos-item-start)) 3379 (while (not (looking-at todos-item-start))
3378 (forward-line -1)) 3380 (forward-line -1))