diff options
author | Richard M. Stallman <rms@gnu.org> | 2001-11-13 04:11:29 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2001-11-13 04:11:29 +0000 |
commit | ade67f6a51e22adbb90431773059fc1ec6b11120 (patch) | |
tree | d97c1c113b9d361877727a1eeb55780869fc035a /lisp/calendar | |
parent | 1c1d3d69ffe87331d382841309016839bb83267a (diff) | |
download | emacs-ade67f6a51e22adbb90431773059fc1ec6b11120.tar.gz emacs-ade67f6a51e22adbb90431773059fc1ec6b11120.tar.bz2 emacs-ade67f6a51e22adbb90431773059fc1ec6b11120.zip |
(todo-save): Add save-excursion and save-restriction.
Diffstat (limited to 'lisp/calendar')
-rw-r--r-- | lisp/calendar/todo-mode.el | 12 |
1 files changed, 7 insertions, 5 deletions
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 @@ ;; Author: Oliver Seidel <os10000@seidel-space.de> ;; [Not clear the above works, July 2000] ;; Created: 2 Aug 1997 -;; Version: $Id: todo-mode.el,v 1.46 2001/07/05 13:51:17 gerd Exp $ +;; Version: $Id: todo-mode.el,v 1.47 2001/07/16 12:22:59 pj Exp $ ;; Keywords: calendar, todo ;; This file is part of GNU Emacs. @@ -97,7 +97,7 @@ ;; ;; Which version of todo-mode.el does this documentation refer to? ;; -;; $Id: todo-mode.el,v 1.46 2001/07/05 13:51:17 gerd Exp $ +;; $Id: todo-mode.el,v 1.47 2001/07/16 12:22:59 pj Exp $ ;; ;; Pre-Requisites ;; @@ -494,9 +494,11 @@ Use `todo-categories' instead.") (defun todo-save () "Save the TODO list." (interactive) - (save-buffer) - (if todo-save-top-priorities-too (todo-save-top-priorities)) - ) + (save-excursion + (save-restriction + (save-buffer) + (if todo-save-top-priorities-too (todo-save-top-priorities)) + ))) (defalias 'todo-cmd-save 'todo-save) (defun todo-quit () |