]> git.eshelyaron.com Git - emacs.git/commitdiff
(todo-save): Add save-excursion and save-restriction.
authorRichard M. Stallman <rms@gnu.org>
Tue, 13 Nov 2001 04:11:29 +0000 (04:11 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 13 Nov 2001 04:11:29 +0000 (04:11 +0000)
lisp/ChangeLog
lisp/calendar/todo-mode.el

index 7a226bc60349619ce16538adfa319b21f26411de..df7ef6e2a783faf01d00acfdcd69fae560e393c0 100644 (file)
@@ -1,5 +1,8 @@
 2001-11-12  Richard M. Stallman  <rms@gnu.org>
 
+       * calendar/todo-mode.el (todo-save): Add save-excursion
+       and save-restriction.
+
        * server.el (server-edit, server-done): Doc fix.
 
        * simple.el (clone-indirect-buffer): Error if major mode symbol
index 772157adbc643783eecef60a34d8ed908f7cfdc9..83f4e4bf90a44334000108d32c52dd670cd6a4bf 100644 (file)
@@ -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 ()