From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229013445 1896 80.91.229.12 (11 Dec 2008 16:37:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Dec 2008 16:37:25 +0000 (UTC) Cc: 1495@emacsbugs.donarmstrong.com, Dan Nicolaescu , emacs-devel@gnu.org, Paul R To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 11 17:38:26 2008 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 1LAoYI-00076g-Kn for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2008 17:38:15 +0100 Original-Received: from localhost ([127.0.0.1]:58554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAoX0-0004Ru-G0 for ged-emacs-devel@m.gmane.org; Thu, 11 Dec 2008 11:36:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LAoSy-0002yG-WD for emacs-devel@gnu.org; Thu, 11 Dec 2008 11:32:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LAoSx-0002xJ-4E for emacs-devel@gnu.org; Thu, 11 Dec 2008 11:32:44 -0500 Original-Received: from [199.232.76.173] (port=32968 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LAoSw-0002xE-RO for emacs-devel@gnu.org; Thu, 11 Dec 2008 11:32:42 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:34818 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LAoSw-000301-GQ for emacs-devel@gnu.org; Thu, 11 Dec 2008 11:32:42 -0500 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: Genre and OS details not recognized. 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:106806 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