GNU bug report logs - #41338
Toolbar-bug in Emacs 27.0.91/Pretest

Previous Next

Package: emacs;

Reported by: Konrad Podczeck <konrad.podczeck <at> univie.ac.at>

Date: Sat, 16 May 2020 20:44:01 UTC

Severity: normal

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: martin rudalics <rudalics <at> gmx.at>, 41338 <at> debbugs.gnu.org, Stephen Berman <stephen.berman <at> gmx.net>, Konrad Podczeck <konrad.podczeck <at> univie.ac.at>
Subject: bug#41338: Toolbar-bug in Emacs 27.0.91/Pretest
Date: Fri, 12 Jun 2020 01:51:54 +0300
> Why doesn't clicking the `X' emit the
> `delete-frame' event?
>
> If I use `emacs -Q', in the Emacs 27 pretest
> or in Emacs 26.3 or earlier, and if I do this
> and then click the `X' icon:
>
> (define-key special-event-map [delete-frame]
>   (lambda (&rest ignore)
>     (interactive)
>     (message "HHHHHHHHHHHHHH")))
>
> I just get the message, as expected.

This is not what is used in isearch: isearch doesn't use special-event-map,
isearch uses overriding-terminal-local-map, so the proper test case is:

(setq overriding-terminal-local-map
      (let ((map (make-keymap)))
	(define-key map [delete-frame]
	  (lambda (&rest ignore)
	    (interactive)
	    (message "DELETE-FRAME")))
	(define-key map "!"
	  (lambda (&rest ignore)
	    (interactive)
	    (message "!")))
	map))

and indeed typing '!' you get the message,
but no message when clicking the `X' icon.




This bug report was last modified 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.