From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: C-x z is useless after switching frames Date: Sat, 25 Aug 2007 21:08:05 -0400 Message-ID: References: <86643e37le.fsf@lola.quinscape.zz> <46C594DD.8090707@gmx.at> <46D017F4.7040509@gmx.at> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1188090499 29299 80.91.229.12 (26 Aug 2007 01:08:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2007 01:08:19 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 26 03:08:16 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IP6bt-0000yT-Lh for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2007 03:08:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IP6bt-0006Qv-73 for ged-emacs-devel@m.gmane.org; Sat, 25 Aug 2007 21:08:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IP6bq-0006QN-7t for emacs-devel@gnu.org; Sat, 25 Aug 2007 21:08:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IP6bo-0006OS-UP for emacs-devel@gnu.org; Sat, 25 Aug 2007 21:08:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IP6bo-0006OP-Rn for emacs-devel@gnu.org; Sat, 25 Aug 2007 21:08:08 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IP6bo-0004hr-Iq for emacs-devel@gnu.org; Sat, 25 Aug 2007 21:08:08 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IP6bl-000424-5z; Sat, 25 Aug 2007 21:08:05 -0400 In-reply-to: <46D017F4.7040509@gmx.at> (message from martin rudalics on Sat, 25 Aug 2007 13:52:20 +0200) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:77172 gmane.emacs.pretest.bugs:19629 Archived-At: Inherently, changing `real-last-command' is not "nice". I wasn't thinking of changing it; rather, not setting it at all for those kinds of events. That probably works in practice, because the only other package that tests `real-last-command' is table.el, and I think it could just as well use `last-command'. But you are right that this isn't entirely clean. What could be a cleaner method? Perhaps to make a new variable and set it at the C level, almost like `real-last-command' but excluding certain commands, or certain events. Disregarding my scruples, how do I tell whether `real-this-command' was bound to an input event at the time of executing current_kboard->Vreal_last_command = real_this_command; My idea was to test last_command_char.