]> git.eshelyaron.com Git - emacs.git/commit
Fix regression in 'kill-this-buffer' (bug#78809)
authorStephen Berman <stephen.berman@gmx.net>
Tue, 17 Jun 2025 14:08:32 +0000 (16:08 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:15:07 +0000 (10:15 +0200)
commit39d6315d3d6565acc427f2fe3da4471ae708798b
treea81f25fb754b7047229897c9593014a7ddf17d87
parent1b34334f61746fc791362337cab4bd82ed249bb0
Fix regression in 'kill-this-buffer' (bug#78809)

This restores the ability to use 'kill-this-buffer' when a
keyboard event pops up the Global Menu.  Instead of raising an
error if the command was not called by a mouse event, an error is
now raised if it was not called from a menu or a tool bar.

* lisp/menu-bar.el (kill-this-buffer): Remove optional EVENT from
argument list and "e" code from interactive spec.  Adjust doc
string.  Use 'last-command-event' to determine if command was
called from a menu or a tool bar.  Use 'event--posn-at-point' in
test for frame.

* lisp/net/eudc-hotlist.el (eudc-hotlist-quit-edit):
* lisp/net/eudc.el (eudc-display-records, eudc-query-form):
* lisp/vc/pcvs.el (cvs-mode-map): Replace uses of
'kill-this-buffer' by 'kill-current-buffer'.

(cherry picked from commit 79e50ddb9ca8b9fd3c60ba324758e84d0b535e66)
lisp/menu-bar.el
lisp/net/eudc-hotlist.el
lisp/net/eudc.el
lisp/vc/pcvs.el