all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Vexing problem with read-char-exclusive (ELISP)
@ 2013-08-01  1:27 Bob Newell
  2013-08-01  3:46 ` Stefan Monnier
  0 siblings, 1 reply; 8+ messages in thread
From: Bob Newell @ 2013-08-01  1:27 UTC (permalink / raw)
  To: help-gnu-emacs

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.


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

end of thread, other threads:[~2013-08-02  3:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01  1:27 Vexing problem with read-char-exclusive (ELISP) Bob Newell
2013-08-01  3:46 ` 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

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.