[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23204: 25.1.50; Strange behaviour of ‘read-char’
From: |
Eli Zaretskii |
Subject: |
bug#23204: 25.1.50; Strange behaviour of ‘read-char’ |
Date: |
Sun, 12 Jun 2016 20:11:22 +0300 |
> From: Noam Postavsky <npostavs@users.sourceforge.net>
> Date: Sun, 12 Jun 2016 13:02:30 -0400
> Cc: Mark Karpov <markkarpov@openmailbox.org>
>
> I also don't quite understand why this happens, but it seems that
> using (message nil) to clear the minibuffer also works:
>
> (defun my-command ()
> (interactive)
> (message nil)
> (while (read-char "My prompt…" t)))
>
> (global-set-key (kbd "<f12> t y") #'my-command)
>
> (I can't bind <menu> t y in emacs -Q, I get an error message telling
> me <menu> is not a prefix key)
I think the problem is specifically with invoking such commands via
menus, and the reason is that menu handling is inside the toolkit, out
of Emacs control.