From: Richard M. Stallman Date: Tue, 6 Sep 1994 02:16:33 +0000 (+0000) Subject: (save-place-find-file-hook): Check after-find-file-from-revert-buffer. X-Git-Tag: emacs-19.34~7143 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=47c5a4719aa22391195863fdc4fe7e59968c0a03;p=emacs.git (save-place-find-file-hook): Check after-find-file-from-revert-buffer. --- diff --git a/lisp/saveplace.el b/lisp/saveplace.el index c2927526eaf..e7b28e74768 100644 --- a/lisp/saveplace.el +++ b/lisp/saveplace.el @@ -178,7 +178,8 @@ To save places automatically in all files, put this in your `.emacs' file: (let ((cell (assoc buffer-file-name save-place-alist))) (if cell (progn - (goto-char (cdr cell)) + (or after-find-file-from-revert-buffer + (goto-char (cdr cell))) ;; and make sure it will be saved again for later (setq save-place t)))))