From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: none Date: Sun, 05 Jun 2005 18:49:17 +0200 Message-ID: References: <200506040056.j540uRr07626@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1117989976 29111 80.91.229.2 (5 Jun 2005 16:46:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2005 16:46:16 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 05 18:46:07 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DeyG2-0006Og-O7 for ged-emacs-devel@m.gmane.org; Sun, 05 Jun 2005 18:45:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DeyMB-0000MQ-C4 for ged-emacs-devel@m.gmane.org; Sun, 05 Jun 2005 12:52:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DeyLn-0000Im-LM for emacs-devel@gnu.org; Sun, 05 Jun 2005 12:51:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DeyLl-0000He-HC for emacs-devel@gnu.org; Sun, 05 Jun 2005 12:51:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DeyLl-0000HV-E8 for emacs-devel@gnu.org; Sun, 05 Jun 2005 12:51:49 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DeyLz-0000ep-DA for emacs-devel@gnu.org; Sun, 05 Jun 2005 12:52:03 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id 9BBCA47FE46; Sun, 5 Jun 2005 18:48:54 +0200 (CEST) Original-To: Luc Teirlinck In-Reply-To: <200506040056.j540uRr07626@raven.dms.auburn.edu> (Luc Teirlinck's message of "Fri, 3 Jun 2005 19:56:27 -0500 (CDT)") 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:38146 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38146 Luc Teirlinck writes: > Is there a reason why this-original-command, unlike this-command, > returns a non-nil value when no command is running? It is an oversight. Please install your patch. Thanks. > The reason why > this originally annoyed me is no longer valid, so I do not need this > to be "fixed", but I thought that maybe it might just be due to an > oversight. What about the patch below? Grepping shows that > this-original-command, is only used in ido and cua. Basically, I > believe that only Kim has ever used it. Maybe because until now, I'm the only one(?) who has seriously used the new command remapping feature :-) > What about the mini-patch > below? I can install if desired. > > ===File ~/keyboard.c-diff=================================== > *** keyboard.c 26 May 2005 10:40:35 -0500 1.826 > --- keyboard.c 30 May 2005 17:14:15 -0500 > *************** > *** 1522,1527 **** > --- 1522,1528 ---- > > Vthis_command = Qnil; > real_this_command = Qnil; > + Vthis_original_command=Qnil; > > /* Read next key sequence; i gets its length. */ > i = read_key_sequence (keybuf, sizeof keybuf / sizeof keybuf[0], > ============================================================ > > -- Kim F. Storm http://www.cua.dk