From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.help Subject: Vexing problem with read-char-exclusive (ELISP) Date: Wed, 31 Jul 2013 18:27:32 -0700 (PDT) Message-ID: <8828cd07-bee6-4f5e-9c90-930f41e06f70@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1375323352 1150 80.91.229.3 (1 Aug 2013 02:15:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Aug 2013 02:15:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 01 04:15:53 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V4iQj-0008ED-7M for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Aug 2013 04:15:53 +0200 Original-Received: from localhost ([::1]:58469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4iQi-0002sj-MH for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Jul 2013 22:15:52 -0400 X-Received: by 10.224.7.7 with SMTP id b7mr1394716qab.5.1375320452905; Wed, 31 Jul 2013 18:27:32 -0700 (PDT) X-Received: by 10.50.107.10 with SMTP id gy10mr661553igb.7.1375320452870; Wed, 31 Jul 2013 18:27:32 -0700 (PDT) Original-Path: usenet.stanford.edu!fx3no364149qab.0!news-out.google.com!eb2ni32qab.0!nntp.google.com!fx3no364144qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=72.253.220.237; posting-account=DJm3bwoAAACRU7Y-Jscf90IndpvcTwsh Original-NNTP-Posting-Host: 72.253.220.237 User-Agent: G2/1.0 Injection-Date: Thu, 01 Aug 2013 01:27:32 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:200344 X-Mailman-Approved-At: Wed, 31 Jul 2013 22:15:28 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92611 Archived-At: 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.