aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/files.el16
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 701a0071745..09a3e801ddd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12007-12-10 Yoni Rabkin Katzenell <yoni-r@actcom.com> (tiny change)
2
3 * file.el (revert-buffer): Eliminate overlays and the mark.
4
12007-12-10 Stefan Monnier <monnier@iro.umontreal.ca> 52007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * server.el (server-select-display): Fix important typo. 7 * server.el (server-select-display): Fix important typo.
diff --git a/lisp/files.el b/lisp/files.el
index 8d5fcfda8c2..e6f957f480f 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4204,10 +4204,12 @@ This undoes all changes since the file was visited or saved.
4204With a prefix argument, offer to revert from latest auto-save file, if 4204With a prefix argument, offer to revert from latest auto-save file, if
4205that is more recent than the visited file. 4205that is more recent than the visited file.
4206 4206
4207This command also works for special buffers that contain text which 4207This command also implements an interface for special buffers
4208doesn't come from a file, but reflects some other data base instead: 4208that contain text which doesn't come from a file, but reflects
4209for example, Dired buffers and `buffer-list' buffers. In these cases, 4209some other data instead (e.g. Dired buffers, `buffer-list'
4210it reconstructs the buffer contents from the appropriate data base. 4210buffers). This is done via the variable
4211`revert-buffer-function'. In these cases, it should reconstruct
4212the buffer contents from the appropriate data.
4211 4213
4212When called from Lisp, the first argument is IGNORE-AUTO; only offer 4214When called from Lisp, the first argument is IGNORE-AUTO; only offer
4213to revert from the auto-save file when this is nil. Note that the 4215to revert from the auto-save file when this is nil. Note that the
@@ -4323,7 +4325,11 @@ non-nil, it is called instead of rereading visited file contents."
4323 (insert-file-contents file-name (not auto-save-p) 4325 (insert-file-contents file-name (not auto-save-p)
4324 nil nil t)) 4326 nil nil t))
4325 (insert-file-contents file-name (not auto-save-p) 4327 (insert-file-contents file-name (not auto-save-p)
4326 nil nil t))))) 4328 nil nil t))
4329 ;; Reset the mark and remove all overlays.
4330 (setq mark-active nil
4331 mark-ring nil)
4332 (remove-overlays))))
4327 ;; Recompute the truename in case changes in symlinks 4333 ;; Recompute the truename in case changes in symlinks
4328 ;; have changed the truename. 4334 ;; have changed the truename.
4329 (setq buffer-file-truename 4335 (setq buffer-file-truename