From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6256: 24.0.50; read-event in `repeat' command Date: Mon, 24 May 2010 22:41:25 -0400 Message-ID: References: <058F2FC300154C1AB894694655B2A968@us.oracle.com> <90A72397ABF34D84A3ACB3B6DE18F74A@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1274756247 7148 80.91.229.12 (25 May 2010 02:57:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 May 2010 02:57:27 +0000 (UTC) Cc: 6256@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 25 04:57:26 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OGkKb-0002nJ-Np for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 May 2010 04:57:26 +0200 Original-Received: from localhost ([127.0.0.1]:55125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGkKb-0003Yh-89 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 May 2010 22:57:25 -0400 Original-Received: from [140.186.70.92] (port=38320 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGkKT-0003X6-Od for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 22:57:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGkKS-0001oQ-K1 for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 22:57:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46158) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGkKS-0001oK-FO for bug-gnu-emacs@gnu.org; Mon, 24 May 2010 22:57:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OGk5h-0007H7-KO; Mon, 24 May 2010 22:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 May 2010 02:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6256 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6256-submit@debbugs.gnu.org id=B6256.127475529227958 (code B ref 6256); Tue, 25 May 2010 02:42:01 +0000 Original-Received: (at 6256) by debbugs.gnu.org; 25 May 2010 02:41:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGk5E-0007Gt-8X for submit@debbugs.gnu.org; Mon, 24 May 2010 22:41:32 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGk5B-0007Go-O0 for 6256@debbugs.gnu.org; Mon, 24 May 2010 22:41:30 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAF7V+ktFpZMM/2dsb2JhbACdeXK+AoUTBIw/ X-IronPort-AV: E=Sophos;i="4.53,295,1272859200"; d="scan'208";a="64966380" Original-Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 24 May 2010 22:41:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 49E948267; Mon, 24 May 2010 22:41:25 -0400 (EDT) In-Reply-To: <90A72397ABF34D84A3ACB3B6DE18F74A@us.oracle.com> (Drew Adams's message of "Mon, 24 May 2010 16:05:27 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 24 May 2010 22:42:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37246 Archived-At: > I take it back. `read-char-exclusive' is not the right fix, because not all > keyboard events are character events. Hitting the key `left', for instance, > does not work. I think the real answer is that both read-event and read-char-exclusive are the wrong answer. A better answer would be to have some way to change the way the next key is handled. Something like a `next-key-map', kind of like the overriding maps, except that it would be automatically reset before running a command (and it would not disable the other keymaps, only take precedence over them). Basically calling read-event and friends and then putting it back onto the unread-command-events list is almost always wrong in one way or another (e.g. it postpones running post-command-hook). Stefan