aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-02-21 21:32:35 +0000
committerKarl Heuer1996-02-21 21:32:35 +0000
commitfa660969617d1904b4040148c79d936c6e50692e (patch)
tree44a4bede2e281bc333d9781f700bcd5cf536ef25
parentcd69d9dd0f49736af3a9cc1df1f375d7c0cf6917 (diff)
downloademacs-fa660969617d1904b4040148c79d936c6e50692e.tar.gz
emacs-fa660969617d1904b4040148c79d936c6e50692e.zip
(find-file-noselect): If after-find-file switches buffers,
return the buffer that it leaves current.
-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."
829 (setq backup-inhibited t))) 829 (setq backup-inhibited t)))
830 (if rawfile 830 (if rawfile
831 nil 831 nil
832 (after-find-file error (not nowarn))))) 832 (after-find-file error (not nowarn))
833 (setq buf (current-buffer)))))
833 buf))) 834 buf)))
834 835
835(defvar after-find-file-from-revert-buffer nil) 836(defvar after-find-file-from-revert-buffer nil)