]> git.eshelyaron.com Git - emacs.git/commit
Minor fix in 'find-alternate-file'
authorimmerrr <immerrr@gmail.com>
Sun, 17 May 2020 11:47:23 +0000 (13:47 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 30 May 2020 12:25:34 +0000 (15:25 +0300)
commit3dbe6530b124436550dae4db6cd4b7b380e95377
treef12cd0d837bfb2b3a6c1b5139c75d23aee09738c
parent360d7c716dc49aeaa62bd2174e803e0a3eaeaa1b
Minor fix in 'find-alternate-file'

This fixes the use case when, for example, 'find-file-hooks'
fails.
* lisp/files.el (find-alternate-file): If buffer 'oname' exists,
kill it before renaming the new one.  (Bug#41359)
lisp/files.el