]> git.eshelyaron.com Git - emacs.git/commit
Preserve point under 'dired-auto-revert-buffer' (third case)
authorStephen Berman <stephen.berman@gmx.net>
Sat, 29 Jul 2017 11:34:47 +0000 (13:34 +0200)
committerStephen Berman <stephen.berman@gmx.net>
Sat, 29 Jul 2017 11:34:47 +0000 (13:34 +0200)
commit8e394b082bd6ecd9ba212cb3ca07cbace66767a6
tree4782f5d9fb8b3143acd57ccf9de78f633c6c94f6
parentdfee60fe66f3d9fe4249c9662d802753f3e50929
Preserve point under 'dired-auto-revert-buffer' (third case)

* lisp/files.el (find-file): Use pop-to-buffer-same-window
instead of switch-to-buffer.  This preserves Dired window
point when dired-auto-revert-buffer is non-nil.  (Bug#27243)

* test/lisp/dired-tests.el (dired-test-bug27243-01)
(dired-test-bug27243-02, dired-test-bug27243-03): New tests.
The first two replace a previous test that combined them; that
test intermittently fails in the Hydra build system, so maybe
separating the two cases will help locate the point of
failure.  The third test involves find-file but is here
because it, like the others, is testing the effect of
dired-auto-revert-buffer.
lisp/files.el
test/lisp/dired-tests.el