diff options
| author | Stephen Berman | 2013-05-13 11:59:59 +0200 |
|---|---|---|
| committer | Stephen Berman | 2013-05-13 11:59:59 +0200 |
| commit | 199b0d390421502bbf5cf98d850178a6b9f433d8 (patch) | |
| tree | 0c71c926deeba1c2e9eef2e926a47b2879200008 | |
| parent | 74e14031486a5b116bcf2cd821e842b54f0f959d (diff) | |
| download | emacs-199b0d390421502bbf5cf98d850178a6b9f433d8.tar.gz emacs-199b0d390421502bbf5cf98d850178a6b9f433d8.zip | |
* todos.el (todos-modes-set-2): Restore point after finding start
and end of hl-line-range-function.
| -rw-r--r-- | lisp/calendar/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calendar/todos.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/calendar/ChangeLog b/lisp/calendar/ChangeLog index 19f515781b7..6767b97a26f 100644 --- a/lisp/calendar/ChangeLog +++ b/lisp/calendar/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2013-05-13 Stephen Berman <stephen.berman@gmx.net> | 1 | 2013-05-13 Stephen Berman <stephen.berman@gmx.net> |
| 2 | 2 | ||
| 3 | * todos.el (todos-modes-set-2): Restore point after finding start | ||
| 4 | and end of hl-line-range-function. | ||
| 5 | |||
| 6 | 2013-05-13 Stephen Berman <stephen.berman@gmx.net> | ||
| 7 | |||
| 3 | * todos.el: Fixes for item marking and marked items. | 8 | * todos.el: Fixes for item marking and marked items. |
| 4 | (todos-toggle-mark-item): Make no-op if point is not on an item. | 9 | (todos-toggle-mark-item): Make no-op if point is not on an item. |
| 5 | Toggle mark even if point is not at start of item. | 10 | Toggle mark even if point is not at start of item. |
diff --git a/lisp/calendar/todos.el b/lisp/calendar/todos.el index f951123bc2b..91470a38cf8 100644 --- a/lisp/calendar/todos.el +++ b/lisp/calendar/todos.el | |||
| @@ -2995,8 +2995,9 @@ which is the value of the user option | |||
| 2995 | (add-to-invisibility-spec 'todos) | 2995 | (add-to-invisibility-spec 'todos) |
| 2996 | (setq buffer-read-only t) | 2996 | (setq buffer-read-only t) |
| 2997 | (set (make-local-variable 'hl-line-range-function) | 2997 | (set (make-local-variable 'hl-line-range-function) |
| 2998 | (lambda() (when (todos-item-end) | 2998 | (lambda() (save-excursion |
| 2999 | (cons (todos-item-start) (todos-item-end)))))) | 2999 | (when (todos-item-end) |
| 3000 | (cons (todos-item-start) (todos-item-end))))))) | ||
| 3000 | 3001 | ||
| 3001 | (defun todos-modes-set-3 () | 3002 | (defun todos-modes-set-3 () |
| 3002 | "" | 3003 | "" |