diff options
| author | Paul Eggert | 2016-01-30 11:27:34 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-30 11:27:34 -0800 |
| commit | 82b089783e71b2aeef950eaecfe4cbc0735e64a2 (patch) | |
| tree | a826c20768071bda95a69b2632718c1641c6d0cc /lisp/calendar | |
| parent | d27c8078ef766dae3587bc82b70128a70efaa223 (diff) | |
| parent | f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc (diff) | |
| download | emacs-82b089783e71b2aeef950eaecfe4cbc0735e64a2.tar.gz emacs-82b089783e71b2aeef950eaecfe4cbc0735e64a2.zip | |
-
Diffstat (limited to 'lisp/calendar')
| -rw-r--r-- | lisp/calendar/todo-mode.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index 353ca69a1ba..29d8dfcfb7f 100644 --- a/lisp/calendar/todo-mode.el +++ b/lisp/calendar/todo-mode.el | |||
| @@ -4654,13 +4654,15 @@ name in `todo-directory'. See also the documentation string of | |||
| 4654 | (goto-char (match-beginning 0)) | 4654 | (goto-char (match-beginning 0)) |
| 4655 | (goto-char (point-max))) | 4655 | (goto-char (point-max))) |
| 4656 | (backward-char) | 4656 | (backward-char) |
| 4657 | (when (looking-back "\\[\\([^][]+\\)\\]") | 4657 | (when (looking-back "\\[\\([^][]+\\)\\]" |
| 4658 | (line-beginning-position)) | ||
| 4658 | (setq cat (match-string 1)) | 4659 | (setq cat (match-string 1)) |
| 4659 | (goto-char (match-beginning 0)) | 4660 | (goto-char (match-beginning 0)) |
| 4660 | (replace-match "")) | 4661 | (replace-match "")) |
| 4661 | ;; If the item ends with a non-comment parenthesis not | 4662 | ;; If the item ends with a non-comment parenthesis not |
| 4662 | ;; followed by a period, we lose (but we inherit that | 4663 | ;; followed by a period, we lose (but we inherit that |
| 4663 | ;; problem from the legacy code). | 4664 | ;; problem from the legacy code). |
| 4665 | ;; FIXME: fails on multiline comment | ||
| 4664 | (when (looking-back "(\\(.*\\)) " (line-beginning-position)) | 4666 | (when (looking-back "(\\(.*\\)) " (line-beginning-position)) |
| 4665 | (setq comment (match-string 1)) | 4667 | (setq comment (match-string 1)) |
| 4666 | (replace-match "") | 4668 | (replace-match "") |
| @@ -5230,7 +5232,8 @@ Also preserve category display, if applicable." | |||
| 5230 | (with-current-buffer buffer | 5232 | (with-current-buffer buffer |
| 5231 | (widen) | 5233 | (widen) |
| 5232 | (let ((todo-category-number (cdr (assq 'catnum misc)))) | 5234 | (let ((todo-category-number (cdr (assq 'catnum misc)))) |
| 5233 | (todo-category-select)))) | 5235 | (todo-category-select) |
| 5236 | (current-buffer)))) | ||
| 5234 | 5237 | ||
| 5235 | (add-to-list 'desktop-buffer-mode-handlers | 5238 | (add-to-list 'desktop-buffer-mode-handlers |
| 5236 | '(todo-mode . todo-restore-desktop-buffer)) | 5239 | '(todo-mode . todo-restore-desktop-buffer)) |
| @@ -6579,8 +6582,7 @@ Added to `window-configuration-change-hook' in Todo mode." | |||
| 6579 | "Make some settings that apply to multiple Todo modes." | 6582 | "Make some settings that apply to multiple Todo modes." |
| 6580 | (add-to-invisibility-spec 'todo) | 6583 | (add-to-invisibility-spec 'todo) |
| 6581 | (setq buffer-read-only t) | 6584 | (setq buffer-read-only t) |
| 6582 | (when (and (boundp 'desktop-save-mode) desktop-save-mode) | 6585 | (setq-local desktop-save-buffer 'todo-desktop-save-buffer) |
| 6583 | (setq-local desktop-save-buffer 'todo-desktop-save-buffer)) | ||
| 6584 | (when (boundp 'hl-line-range-function) | 6586 | (when (boundp 'hl-line-range-function) |
| 6585 | (setq-local hl-line-range-function | 6587 | (setq-local hl-line-range-function |
| 6586 | (lambda() (save-excursion | 6588 | (lambda() (save-excursion |