summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 31c7f257ce7..309410ba992 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -829,7 +829,8 @@ The buffer is not selected, just returned to the caller."
(setq backup-inhibited t)))
(if rawfile
nil
- (after-find-file error (not nowarn)))))
+ (after-find-file error (not nowarn))
+ (setq buf (current-buffer)))))
buf)))
(defvar after-find-file-from-revert-buffer nil)