# HG changeset patch # User Richard M. Stallman # Date 1005624675 0 # Node ID 5fe63defd48efda0b04da7f722873b6eab31af5c # Parent 5959d9cfe456225c2f47718428ea6fd255fb0579 (todo-save): Add save-excursion and save-restriction. diff -r 5959d9cfe456 -r 5fe63defd48e lisp/calendar/todo-mode.el --- a/lisp/calendar/todo-mode.el Tue Nov 13 03:14:36 2001 +0000 +++ b/lisp/calendar/todo-mode.el Tue Nov 13 04:11:15 2001 +0000 @@ -5,7 +5,7 @@ ;; Author: Oliver Seidel ;; [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 @@ (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 ()