unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* read-char bug
@ 2018-10-20  1:30 Davin Pearson
  2018-10-20  6:31 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Davin Pearson @ 2018-10-20  1:30 UTC (permalink / raw)
  To: help-gnu-emacs

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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: read-char bug
  2018-10-20  1:30 read-char bug Davin Pearson
@ 2018-10-20  6:31 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2018-10-20  6:31 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-20  6:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-20  1:30 read-char bug Davin Pearson
2018-10-20  6:31 ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).