Commit fa660969 authored by Karl Heuer's avatar Karl Heuer
Browse files

(find-file-noselect): If after-find-file switches buffers,

return the buffer that it leaves current.
parent cd69d9dd
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment