From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: emacs -nw inserts unwanted chars if user is impatient Date: Thu, 4 Dec 2008 12:30:05 -0800 (PST) Message-ID: <200812042030.mB4KU5Jn003761@mothra.ics.uci.edu> References: <87ljuv92uq.fsf@gmail.com> <87d4g7d9gn.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 1228422633 522 80.91.229.12 (4 Dec 2008 20:30:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2008 20:30:33 +0000 (UTC) Cc: Paul R , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 04 21:31:36 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 1L8KrH-0005Q1-OX for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2008 21:31:35 +0100 Original-Received: from localhost ([127.0.0.1]:37956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8Kq6-00009K-O5 for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2008 15:30:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8Kq2-00008i-8v for emacs-devel@gnu.org; Thu, 04 Dec 2008 15:30:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8Kq1-00007h-If for emacs-devel@gnu.org; Thu, 04 Dec 2008 15:30:17 -0500 Original-Received: from [199.232.76.173] (port=53233 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8Kq1-00007V-7H for emacs-devel@gnu.org; Thu, 04 Dec 2008 15:30:17 -0500 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:57053) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1L8Kq0-0007qL-Ow for emacs-devel@gnu.org; Thu, 04 Dec 2008 15:30:17 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mB4KU6ik010969; Thu, 4 Dec 2008 12:30:07 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mB4KU5Jn003761; Thu, 4 Dec 2008 12:30:05 -0800 (PST) In-Reply-To: <87d4g7d9gn.fsf@cyd.mit.edu> (Chong Yidong's message of "Thu, 04 Dec 2008 14:30:32 -0500") Original-Lines: 22 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mB4KU6ik010969 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:106580 Archived-At: Chong Yidong writes: > Paul R writes: > > > I usually work on X version of emacs 23. However, sometime, I just want > > to alter a config file from the terminal. In this case I type > > > > emacs -nw conf_file.conf > > > > Very often I know that the line I want to go to is fairly low so before > > emacs has finished to load I'm already pressing C-n waiting for the > > display to show line and point. I guess a lot of user do the same and > > often don't wait for the display to finish before typing what they want. > > Probably the key sequence is getting registered before the keyboard > translation is set up properly. Emacs probably needs to discard this > input instead of trying to deal with it. I'm fairly confident this is due to the code in xterm.el that deals with modifyOtherKeys, the input probably comes while emacs is waiting from an answer from xterm.