From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Strange behavior of C-u in the presence of sit-for in p-c-h Date: Tue, 17 Oct 2006 18:18:00 -0400 Message-ID: <87y7reziw7.fsf@stupidchicken.com> References: <87y7rfdmjg.fsf@furball.mit.edu> <87zmbuabq9.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161123544 3019 80.91.229.2 (17 Oct 2006 22:19:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Oct 2006 22:19:04 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 18 00:19:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GZxGw-0000Fl-Ae for ged-emacs-devel@m.gmane.org; Wed, 18 Oct 2006 00:18:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZxGv-0007rF-Lc for ged-emacs-devel@m.gmane.org; Tue, 17 Oct 2006 18:18:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GZxFy-0006dU-BR for emacs-devel@gnu.org; Tue, 17 Oct 2006 18:17:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GZxFv-0006Y4-4Y for emacs-devel@gnu.org; Tue, 17 Oct 2006 18:17:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GZxFu-0006Xl-RJ for emacs-devel@gnu.org; Tue, 17 Oct 2006 18:17:50 -0400 Original-Received: from [18.19.1.138] (helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GZxFs-0004Xy-AG; Tue, 17 Oct 2006 18:17:48 -0400 Original-Received: by cyd (Postfix, from userid 1000) id AE8BC4E442; Tue, 17 Oct 2006 18:18:00 -0400 (EDT) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Tue\, 17 Oct 2006 18\:12\:17 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60840 Archived-At: Stefan Monnier writes: >> This normally works ok. However, suppose the call to >> read_key_sequence in the command loop takes its input from >> unread-command-events. (This happens if the input came during a >> sit-for in post-command-hook, as in Stefan's original example, or >> directly as in the example above.) This kind of "reread input" is >> explicitly *not* added to this_command_keys. The rationale for this >> is not clear to me, but there may be a good reason since the code >> explicitly checks for this; see keyboard.c:789. Then >> `universal-argument-other-key' can't see that input. > > I think I understand, but I can't find the code in keyboard.c. > Do you really mean "line 789"? Of which revision? Sorry; by 789, I mean 3262 :-P