all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bob Newell <chipschap@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Vexing problem with read-char-exclusive (ELISP)
Date: Wed, 31 Jul 2013 18:27:32 -0700 (PDT)	[thread overview]
Message-ID: <8828cd07-bee6-4f5e-9c90-930f41e06f70@googlegroups.com> (raw)

If you run this minimal code:

(defun minimal-function ()
  (interactive)
    (while t
      (read-char-exclusive " ")
    )
)

everything works as expected, that is typed characters are simply absorbed until C-g exits the loop. But notice the " " as the prompt arg in read-char-exclusive. Why is it there?

Because if you run this:

(defun minimal-function ()
  (interactive)
    (while t
      (read-char-exclusive)
    )
)

and you pause typing input characters briefly, everything you've typed since you've invoked the function shows up in the echo area, like this:

ESC x m i n i m a l - f u n c t i o n RET a b c d e f g    (etc.)

I thought this might have something to do with minibuffer history, but I can't verify that, and I've dived into EMACS source code without luck (maybe without skill, too). I'm deep into keyboard.c and wondering...

Any ideas, leads, or help much appreciated. Running EMACS 23.3 on Linux Mint 13.


             reply	other threads:[~2013-08-01  1:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-01  1:27 Bob Newell [this message]
2013-08-01  3:46 ` Vexing problem with read-char-exclusive (ELISP) Stefan Monnier
2013-08-01 10:02   ` Stephen Berman
2013-08-01 15:03     ` Stefan Monnier
     [not found]     ` <mailman.2325.1375377396.12400.help-gnu-emacs@gnu.org>
2013-08-02  0:40       ` Bob Newell
2013-08-02  2:33         ` Stefan Monnier
     [not found]         ` <mailman.2353.1375410831.12400.help-gnu-emacs@gnu.org>
2013-08-02  3:35           ` Bob Newell
2013-08-02  3:40             ` Stefan Monnier

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=8828cd07-bee6-4f5e-9c90-930f41e06f70@googlegroups.com \
    --to=chipschap@gmail.com \
    --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.