]> git.eshelyaron.com Git - emacs.git/commit
Fix inconsistent behaviour in find-file-noselect when using nowarn
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 4 May 2021 09:48:27 +0000 (11:48 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 4 May 2021 09:48:27 +0000 (11:48 +0200)
commite634130607b844a0b428c826b205ede05edeedfc
tree0caa109431b19bae7ea973ceb163ccbb3648450b
parented42afd403f69c2e29e4c09b9e7fd6cd6d7e68b1
Fix inconsistent behaviour in find-file-noselect when using nowarn

* lisp/files.el (after-find-file): Behave the same in when
warning/not warning (bug#47850).  This fixes this test case:
(switch-to-buffer (find-file-noselect "non-existing-dir/test.el" t))
which would leave the buffer read-only.
lisp/files.el