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#13839: xterm/mintty control sequences support when formatOtherKeys = 1 Date: Mon, 11 Mar 2013 14:25:30 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363026379 30511 80.91.229.3 (11 Mar 2013 18:26:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Mar 2013 18:26:19 +0000 (UTC) Cc: 13839@debbugs.gnu.org To: Ren Victor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 11 19:26:40 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UF7Ql-0001dw-Q4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Mar 2013 19:26:39 +0100 Original-Received: from localhost ([::1]:38098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF7QP-0000Z6-Gq for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Mar 2013 14:26:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF7QG-0000Y7-Jv for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2013 14:26:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UF7QE-0006qB-Km for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2013 14:26:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UF7QE-0006q1-Fy for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2013 14:26:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UF7R7-0005si-L9 for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2013 14:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Mar 2013 18:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13839 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13839-submit@debbugs.gnu.org id=B13839.136302639522571 (code B ref 13839); Mon, 11 Mar 2013 18:27:01 +0000 Original-Received: (at 13839) by debbugs.gnu.org; 11 Mar 2013 18:26:35 +0000 Original-Received: from localhost ([127.0.0.1]:46721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UF7Qg-0005s0-QK for submit@debbugs.gnu.org; Mon, 11 Mar 2013 14:26:35 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:6483) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UF7Qd-0005rl-JF for 13839@debbugs.gnu.org; Mon, 11 Mar 2013 14:26:32 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KL9/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2CSo5AA6R6gV6DEw X-IPAS-Result: Av4EABK/CFHO+KL9/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2CSo5AA6R6gV6DEw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="4241058" Original-Received: from 206-248-162-253.dsl.teksavvy.com (HELO ceviche.home) ([206.248.162.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Mar 2013 14:25:28 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 27D08660E5; Mon, 11 Mar 2013 14:25:30 -0400 (EDT) In-Reply-To: (Ren Victor's message of "Fri, 1 Mar 2013 23:15:50 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72332 Archived-At: >> Can you confirm that the patch below works for your formatOtherKeys=1 case? > There is no problem in the patch itself. Thanks, installed. > But the xterm extra capability support > does not work automatically due to another bug in lisp/term/xterm.el - > the regexp in line 532 ">0;\\([0-9]+\\);0". It should be > ">[0-9]+;\\([0-9]+\\);0". Hmm... > The default value is 41 (in xterm latest version manual). It seems that indeed the regexp could need revision, but I'd first like to understand what's going on. The test we want to make is "make sure this terminal understands this and that feature". So the "P v" field (the version number) only makes sense if the terminal is actually an xterm (or uses a version numbering that implies the same featureset). In my xterms the "P p" value is always 0 and not 41 as you seem to suggest. More specifically, I'm concerned that by accepting any "P p" number, we might end up trying to use a feature that's not supported by the underlying terminal emulator because it happens to have version numbers that are higher than those of "the usual xterm". Stefan