all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: markkarpov@openmailbox.org, 23204@debbugs.gnu.org
Subject: bug#23204: 25.1.50; Strange behaviour of ‘read-char’
Date: Sun, 12 Jun 2016 20:11:22 +0300	[thread overview]
Message-ID: <8337oigwn9.fsf@gnu.org> (raw)
In-Reply-To: <CAM-tV-8KUmQMv2JZWnaxFY2zzyTUXQnHbVoTstAusXycCH9W8A@mail.gmail.com> (message from Noam Postavsky on Sun, 12 Jun 2016 13:02:30 -0400)

> 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.





  reply	other threads:[~2016-06-12 17:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-03 10:32 bug#23204: 25.1.50; Strange behaviour of ‘read-char’ Mark Karpov
2016-04-03 14:56 ` Eli Zaretskii
2016-04-03 16:33 ` Mark Karpov
2016-06-12 17:02 ` Noam Postavsky
2016-06-12 17:11   ` Eli Zaretskii [this message]
2016-06-12 17:13     ` Noam Postavsky
2016-06-12 17:17       ` Eli Zaretskii
2016-06-12 17:23         ` Noam Postavsky
2016-06-12 17:26           ` Eli Zaretskii
2022-02-03 20:47 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8337oigwn9.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=23204@debbugs.gnu.org \
    --cc=markkarpov@openmailbox.org \
    --cc=npostavs@users.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.