]> git.eshelyaron.com Git - emacs.git/commit
Fix behavior of client frames when 'find-alternate-file' is used
authorEli Zaretskii <eliz@gnu.org>
Sat, 19 Aug 2023 07:34:07 +0000 (10:34 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 19 Aug 2023 07:34:07 +0000 (10:34 +0300)
commite3207b13ce5acbae89441e06c19ae4df7988004e
treee78b519e499cd056ad735ed001e24797579c2612
parentb12ce748d1a6bcb84667097012eae4c2d249ba00
Fix behavior of client frames when 'find-alternate-file' is used

* lisp/files.el (find-alternate-file-dont-kill-client): New var.
(find-alternate-file): Bind it to a special value when invoking
kill-buffer-hook.
* lisp/server.el (server-delete-client): If NOFRAME is
'dont-kill-client', don't kill the client and its terminals.
(server-buffer-done): Pass 'find-alternate-file-dont-kill-client'
to 'server-delete-client'.  (Bug#65277)
lisp/files.el
lisp/server.el