diff options
| author | Richard M. Stallman | 2001-11-13 04:11:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-11-13 04:11:29 +0000 |
| commit | ade67f6a51e22adbb90431773059fc1ec6b11120 (patch) | |
| tree | d97c1c113b9d361877727a1eeb55780869fc035a | |
| parent | 1c1d3d69ffe87331d382841309016839bb83267a (diff) | |
| download | emacs-ade67f6a51e22adbb90431773059fc1ec6b11120.tar.gz emacs-ade67f6a51e22adbb90431773059fc1ec6b11120.zip | |
(todo-save): Add save-excursion and save-restriction.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/calendar/todo-mode.el | 12 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7a226bc6034..df7ef6e2a78 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2001-11-12 Richard M. Stallman <rms@gnu.org> | 1 | 2001-11-12 Richard M. Stallman <rms@gnu.org> |
| 2 | 2 | ||
| 3 | * calendar/todo-mode.el (todo-save): Add save-excursion | ||
| 4 | and save-restriction. | ||
| 5 | |||
| 3 | * server.el (server-edit, server-done): Doc fix. | 6 | * server.el (server-edit, server-done): Doc fix. |
| 4 | 7 | ||
| 5 | * simple.el (clone-indirect-buffer): Error if major mode symbol | 8 | * simple.el (clone-indirect-buffer): Error if major mode symbol |
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index 772157adbc6..83f4e4bf90a 100644 --- a/lisp/calendar/todo-mode.el +++ b/lisp/calendar/todo-mode.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Oliver Seidel <os10000@seidel-space.de> | 5 | ;; Author: Oliver Seidel <os10000@seidel-space.de> |
| 6 | ;; [Not clear the above works, July 2000] | 6 | ;; [Not clear the above works, July 2000] |
| 7 | ;; Created: 2 Aug 1997 | 7 | ;; Created: 2 Aug 1997 |
| 8 | ;; Version: $Id: todo-mode.el,v 1.46 2001/07/05 13:51:17 gerd Exp $ | 8 | ;; Version: $Id: todo-mode.el,v 1.47 2001/07/16 12:22:59 pj Exp $ |
| 9 | ;; Keywords: calendar, todo | 9 | ;; Keywords: calendar, todo |
| 10 | 10 | ||
| 11 | ;; This file is part of GNU Emacs. | 11 | ;; This file is part of GNU Emacs. |
| @@ -97,7 +97,7 @@ | |||
| 97 | ;; | 97 | ;; |
| 98 | ;; Which version of todo-mode.el does this documentation refer to? | 98 | ;; Which version of todo-mode.el does this documentation refer to? |
| 99 | ;; | 99 | ;; |
| 100 | ;; $Id: todo-mode.el,v 1.46 2001/07/05 13:51:17 gerd Exp $ | 100 | ;; $Id: todo-mode.el,v 1.47 2001/07/16 12:22:59 pj Exp $ |
| 101 | ;; | 101 | ;; |
| 102 | ;; Pre-Requisites | 102 | ;; Pre-Requisites |
| 103 | ;; | 103 | ;; |
| @@ -494,9 +494,11 @@ Use `todo-categories' instead.") | |||
| 494 | (defun todo-save () | 494 | (defun todo-save () |
| 495 | "Save the TODO list." | 495 | "Save the TODO list." |
| 496 | (interactive) | 496 | (interactive) |
| 497 | (save-buffer) | 497 | (save-excursion |
| 498 | (if todo-save-top-priorities-too (todo-save-top-priorities)) | 498 | (save-restriction |
| 499 | ) | 499 | (save-buffer) |
| 500 | (if todo-save-top-priorities-too (todo-save-top-priorities)) | ||
| 501 | ))) | ||
| 500 | (defalias 'todo-cmd-save 'todo-save) | 502 | (defalias 'todo-cmd-save 'todo-save) |
| 501 | 503 | ||
| 502 | (defun todo-quit () | 504 | (defun todo-quit () |