summaryrefslogtreecommitdiff
path: root/lisp/saveplace.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-09-06 02:16:33 +0000
committerRichard M. Stallman <rms@gnu.org>1994-09-06 02:16:33 +0000
commit3a5d18d268ec0869946e3f9ac1597c345d1c7210 (patch)
tree2351b986dc88a6cf9d27dbdc88d47f161fb3f12c /lisp/saveplace.el
parentebb3774e83a025a6e33ea1fa7e4d95c0bad860e2 (diff)
downloademacs-3a5d18d268ec0869946e3f9ac1597c345d1c7210.tar.gz
(save-place-find-file-hook): Check after-find-file-from-revert-buffer.
Diffstat (limited to 'lisp/saveplace.el')
-rw-r--r--lisp/saveplace.el3
1 files changed, 2 insertions, 1 deletions
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)))))