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#6758: 23.2; xterm.el: please provide an option to not discard input in terminal-init-xterm Date: Mon, 02 Aug 2010 01:03:02 +0200 Message-ID: References: <87r5im11u9.fsf@psychosis.jim.sh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280704087 8079 80.91.229.12 (1 Aug 2010 23:08:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Aug 2010 23:08:07 +0000 (UTC) Cc: 6758@debbugs.gnu.org To: Jim Paris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 02 01:08:06 2010 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 1OfhdV-0005pr-OY for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Aug 2010 01:08:06 +0200 Original-Received: from localhost ([127.0.0.1]:56639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfhdV-00043J-9Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Aug 2010 19:08:05 -0400 Original-Received: from [140.186.70.92] (port=46668 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OfhdO-000438-Pf for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 19:07:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OfhdN-0000YY-NQ for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 19:07:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37117) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfhdN-0000YT-Lx for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 19:07:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OfhYc-00064C-4p; Sun, 01 Aug 2010 19:03:02 -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: Sun, 01 Aug 2010 23:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6758 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6758-submit@debbugs.gnu.org id=B6758.128070376623313 (code B ref 6758); Sun, 01 Aug 2010 23:03:02 +0000 Original-Received: (at 6758) by debbugs.gnu.org; 1 Aug 2010 23:02:46 +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 1OfhYL-00063y-PR for submit@debbugs.gnu.org; Sun, 01 Aug 2010 19:02:45 -0400 Original-Received: from impaqm3.telefonica.net ([213.4.138.3]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfhYJ-00063r-KY for 6758@debbugs.gnu.org; Sun, 01 Aug 2010 19:02:44 -0400 Original-Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm3.telefonica.net with bizsmtp id pAbP1e0102h2L9m3PB345c; Mon, 02 Aug 2010 01:03:04 +0200 Original-Received: from ceviche.home ([83.61.38.247]) by IMPmailhost3.adm.correo with BIZ IMP id pB321e0025KwfZf1jB33TV; Mon, 02 Aug 2010 01:03:04 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id 547C366140; Mon, 2 Aug 2010 01:03:02 +0200 (CEST) In-Reply-To: <87r5im11u9.fsf@psychosis.jim.sh> (Jim Paris's message of "Thu, 29 Jul 2010 16:15:42 -0400") 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: Sun, 01 Aug 2010 19:03:02 -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:39116 Archived-At: > I can also imagine a more complete fix that would involve not flushing > the input buffer, and interpreting the Xterm responses in a more > asynchronous fashion: > - Don't discard input > - Send the \e[>0c probe > - Allow input into the buffer as usual, but for the next few seconds, > interpret \e[>0;251;0c responses and perform > (xterm-turn-on-modify-other-keys) etc. as necessary. Time-dependent processing is considered brittle (especially when working remotely via something like SSH), so we prefer to avoid it. Especially since coding it right could prove pretty darn tricky. OTOH, I thought we had agreed that we need to add a configuration variable xterm-turn-on-modify-other-keys which could be set to t or nil to force the modifyOtherKeys feature of Xterm ON or OFF without first checking whether the current xterm indeed supports it or not. Its default value would be `auto', which would first check for support and then turn it ON if applicable. Since the "discard input" is needed for the check, this would solve your problem. Now, I don't see such a variable, so either I misremeber, or the patch was never written, or never committed, ... Stefan