From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: read-char bug
Date: Sat, 20 Oct 2018 09:31:54 +0300 [thread overview]
Message-ID: <83o9bpuo11.fsf@gnu.org> (raw)
In-Reply-To: <4e4d0d10-7f2b-49dc-b17c-279b23402b16@googlegroups.com> (message from Davin Pearson on Fri, 19 Oct 2018 18:30:38 -0700 (PDT))
> Date: Fri, 19 Oct 2018 18:30:38 -0700 (PDT)
> From: Davin Pearson <davin.pearson@gmail.com>
>
> When I run the following code and then press the left mouse button and it goes into an infinite loop. I have also tried the alternative to read-char, methinks it is something like read-char-exclusive and that fails too.
>
> (let (done ch)
> (setq done nil)
> (when (not done)
> (condition-case err
> (setq ch (read-char "Enter y, n, ! or q"))'
> (error
> (message "Wrong char")))
> ))
> ch)
The above has syntax errors, so it's hard to know what you actually
run. If I clean it up as best as I understand, then I cannot
reproduce this in Emacs 26.1, so lease also tell what version of Emacs
are you using.
prev parent reply other threads:[~2018-10-20 6:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-20 1:30 read-char bug Davin Pearson
2018-10-20 6:31 ` Eli Zaretskii [this message]
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=83o9bpuo11.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.