aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2007-12-12 01:18:26 +0000
committerVinicius Jose Latorre2007-12-12 01:18:26 +0000
commit2a29c40930f8585f3bf6b19e85eb6703dcc38ae5 (patch)
tree2d4eb954f86b2d2c330cab551e18629e7bcfac61
parentc7d97628b0b89069ae740bf0955d1bdb595e1a09 (diff)
downloademacs-2a29c40930f8585f3bf6b19e85eb6703dcc38ae5.tar.gz
emacs-2a29c40930f8585f3bf6b19e85eb6703dcc38ae5.zip
return back entry: revert-buffer should eliminate overlays and the mark
-rw-r--r--etc/TODO2
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/files.el16
3 files changed, 7 insertions, 15 deletions
diff --git a/etc/TODO b/etc/TODO
index cfd8dba2ec2..7d4c5d34980 100644
--- a/etc/TODO
+++ b/etc/TODO
@@ -37,6 +37,8 @@ a window doesn't select it.
37 37
38** buffer-offer-save should be a permanent local. 38** buffer-offer-save should be a permanent local.
39 39
40** revert-buffer should eliminate overlays and the mark.
41
40** erase-buffer should perhaps disregard read-only properties of text. 42** erase-buffer should perhaps disregard read-only properties of text.
41 43
42** Make occur correctly handle matches that span more than one line, 44** Make occur correctly handle matches that span more than one line,
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 260a6a802a0..12cbb15eacc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -9,10 +9,6 @@
9 * calc/calc.el (calc-set-mode-line): Use `math-lang-name' 9 * calc/calc.el (calc-set-mode-line): Use `math-lang-name'
10 to set language name. 10 to set language name.
11 11
122007-12-10 Yoni Rabkin Katzenell <yoni-r@actcom.com> (tiny change)
13
14 * file.el (revert-buffer): Eliminate overlays and the mark.
15
162007-12-10 Stefan Monnier <monnier@iro.umontreal.ca> 122007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17 13
18 * server.el (server-select-display): Fix important typo. 14 * server.el (server-select-display): Fix important typo.
diff --git a/lisp/files.el b/lisp/files.el
index e6f957f480f..8d5fcfda8c2 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4204,12 +4204,10 @@ 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 implements an interface for special buffers 4207This command also works for special buffers that contain text which
4208that contain text which doesn't come from a file, but reflects 4208doesn't come from a file, but reflects some other data base instead:
4209some other data instead (e.g. Dired buffers, `buffer-list' 4209for example, Dired buffers and `buffer-list' buffers. In these cases,
4210buffers). This is done via the variable 4210it reconstructs the buffer contents from the appropriate data base.
4211`revert-buffer-function'. In these cases, it should reconstruct
4212the buffer contents from the appropriate data.
4213 4211
4214When called from Lisp, the first argument is IGNORE-AUTO; only offer 4212When called from Lisp, the first argument is IGNORE-AUTO; only offer
4215to revert from the auto-save file when this is nil. Note that the 4213to revert from the auto-save file when this is nil. Note that the
@@ -4325,11 +4323,7 @@ non-nil, it is called instead of rereading visited file contents."
4325 (insert-file-contents file-name (not auto-save-p) 4323 (insert-file-contents file-name (not auto-save-p)
4326 nil nil t)) 4324 nil nil t))
4327 (insert-file-contents file-name (not auto-save-p) 4325 (insert-file-contents file-name (not auto-save-p)
4328 nil nil t)) 4326 nil nil t)))))
4329 ;; Reset the mark and remove all overlays.
4330 (setq mark-active nil
4331 mark-ring nil)
4332 (remove-overlays))))
4333 ;; Recompute the truename in case changes in symlinks 4327 ;; Recompute the truename in case changes in symlinks
4334 ;; have changed the truename. 4328 ;; have changed the truename.
4335 (setq buffer-file-truename 4329 (setq buffer-file-truename