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#1495: emacs -nw inserts unwanted chars if user is impatient Date: Thu, 11 Dec 2008 11:32:39 -0500 Message-ID: References: <87ljuv92uq.fsf@gmail.com> <87d4g7d9gn.fsf@cyd.mit.edu> <200812042030.mB4KU5Jn003761@mothra.ics.uci.edu> <87skp3w9c4.fsf@cyd.mit.edu> Reply-To: Stefan Monnier , 1495@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229014111 4312 80.91.229.12 (11 Dec 2008 16:48:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2008 16:48:31 +0000 (UTC) Cc: 1495@emacsbugs.donarmstrong.com, Dan Nicolaescu , emacs-devel@gnu.org, Paul R To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 11 17:49:34 2008 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.50) id 1LAojF-0003gU-E9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Dec 2008 17:49:33 +0100 Original-Received: from localhost ([127.0.0.1]:48710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAoi4-0003Aj-34 for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Dec 2008 11:48:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAoeF-0008Uq-Ui for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2008 11:44:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAoeE-0008TB-7q for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2008 11:44:23 -0500 Original-Received: from [199.232.76.173] (port=56150 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAoeD-0008Sw-IQ for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2008 11:44:21 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:43013) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LAoeC-0004mx-T6 for bug-gnu-emacs@gnu.org; Thu, 11 Dec 2008 11:44:21 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBGiIMA024681; Thu, 11 Dec 2008 08:44:18 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBBGe4pD023279; Thu, 11 Dec 2008 08:40:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 11 Dec 2008 16:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1495 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1495-submit@emacsbugs.donarmstrong.com id=B1495.122901316821194 (code B ref 1495); Thu, 11 Dec 2008 16:40:04 +0000 X-Spam-Bayes: score:0.0000 Tokens: new, 34; hammy, 96; neutral, 45; spammy, 1. spammytokens:0.993-1--arguing hammytokens:0.000-+--emacs, 0.000-+--H*M:fsf, 0.000-+--H*UA:Emacs, 0.000-+--H*u:Emacs, 0.000-+--H*UA:Gnus Original-Received: (at 1495) by emacsbugs.donarmstrong.com; 11 Dec 2008 16:32:48 +0000 Original-Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBBGWj8B021182 for <1495@emacsbugs.donarmstrong.com>; Thu, 11 Dec 2008 08:32:46 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcFANbOQElFxIVh/2dsb2JhbACBbMttgnmBLA X-IronPort-AV: E=Sophos;i="4.33,753,1220241600"; d="scan'208";a="30926663" Original-Received: from 69-196-133-97.dsl.teksavvy.com (HELO pastel.home) ([69.196.133.97]) by ironport2-out.teksavvy.com with ESMTP; 11 Dec 2008 11:32:39 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C251E86F6; Thu, 11 Dec 2008 11:32:39 -0500 (EST) In-Reply-To: <87skp3w9c4.fsf@cyd.mit.edu> (Chong Yidong's message of "Thu, 04 Dec 2008 23:10:35 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 11 Dec 2008 11:44:23 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:23182 Archived-At: > Discard pending input before doing the terminal query seems to fix the > bug for me. I don't know if it's possible for the user's input to come > inat exactly at the correct moment to fool the terminal query; if so, a > more complicated solution might be required. While arguing that there's probably no way to do much better than that, it occurred to me that "the right way" to do it might be to move the "check for \e [ > NUMBER1 ; NUMBER2 ; NUMBER3 c and run xterm-turn-on-modify-other-keys if applicable" into the input-decode-map. Stefan