caldwell / build-emacs

Build scripts for www.emacsformacosx.com
http://www.emacsformacosx.com/about
GNU General Public License v3.0
364 stars 61 forks source link

x-popup-menu crashes in Emacs 28.1 on macOS 12.3 #115

Open maweigert opened 2 years ago

maweigert commented 2 years ago

Hi,

first, thanks for creating those builds!

I noticed that the recent Emacs version (28.1) for macOS (12.3.1) crashes whenever an entry in a popup menu is selected (e.g. when confirming flyspell suggestions). Curiously, this only happens when the selection is done with the keyboard (i.e. all good when using mouse) and only for the latest version (Emacs 27.2.3 is fine).

Steps to reproduce:

1) Create a file foo.el that contains some simple elisp to open a popup menu:

(easy-menu-define testmenu nil "Test Menu" '(("Hello") ("abc") ("def")))
(x-popup-menu `((0 0) ,(get-buffer-window)) testmenu)

2) Run it and select one of the entries with the keyboard

/Applications/Emacs.app/Contents/MacOS/Emacs -q --load foo.el

M

DinoChiesa commented 2 years ago

Same experience here. (but not using flyspell)

maweigert commented 1 year ago

Still happens with 28.2