summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/files.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 63bab564651..9768853c381 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -928,7 +928,8 @@ Optional second arg RAWFILE non-nil means the file is read literally."
"Save file and revisit non-literally? "))
(progn
(save-buffer)
- (revert-buffer t t))
+ (find-file-noselect-1 buf filename nowarn
+ rawfile truename number))
(if (y-or-n-p (if rawfile
"Discard your edits and revisit file literally? "
"Discard your edits and revisit file non-literally? "))