Commit e6341306 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen
Browse files

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.
parent ed42afd4
Pipeline #10627 failed with stages
in 10 minutes and 24 seconds