From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ren Victor Newsgroups: gmane.emacs.bugs Subject: bug#13839: xterm/mintty control sequences support when formatOtherKeys = 1 Date: Fri, 1 Mar 2013 23:15:50 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1362150968 21634 80.91.229.3 (1 Mar 2013 15:16:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Mar 2013 15:16:08 +0000 (UTC) Cc: 13839@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 01 16:16:29 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 1UBRhC-0001SL-Lq for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Mar 2013 16:16:26 +0100 Original-Received: from localhost ([::1]:39717 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBRgr-0004r2-3w for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Mar 2013 10:16:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBRgn-0004qt-Ga for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 10:16:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBRgm-0005Rd-5z for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 10:16:01 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBRgm-0005RY-1E for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 10:16:00 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UBRij-0002iQ-Qm for bug-gnu-emacs@gnu.org; Fri, 01 Mar 2013 10:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ren Victor Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Mar 2013 15:18: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.136215107810429 (code B ref 13839); Fri, 01 Mar 2013 15:18:01 +0000 Original-Received: (at 13839) by debbugs.gnu.org; 1 Mar 2013 15:17:58 +0000 Original-Received: from localhost ([127.0.0.1]:58248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBRif-0002i9-IZ for submit@debbugs.gnu.org; Fri, 01 Mar 2013 10:17:58 -0500 Original-Received: from mail-qe0-f44.google.com ([209.85.128.44]:35133) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UBRib-0002hz-90 for 13839@debbugs.gnu.org; Fri, 01 Mar 2013 10:17:55 -0500 Original-Received: by mail-qe0-f44.google.com with SMTP id x7so2395703qeu.31 for <13839@debbugs.gnu.org>; Fri, 01 Mar 2013 07:15:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=lPiBG31yGwvpxuW2hHzdvWOBngn/vGjhnLRwQRu/Tu0=; b=w+9oHWvbbDcLllXMNN0KWw1XWlnsBw4ZcGuS9sAluEi1PquAoGUArSSvUb+juQQtNG IUU5oxsKPGe9O4V2c/aXlFEFCxWNBrO5vBS6taNQfHwCIELN656QkG3p8+U6KxWS3mo4 b5fOqlMZ5IENt3hXCHIyssu5EWsNRfOwhJ+QS9ujN8ub8RPS06fYj7pdPr70zJytbrI/ eJb8ztvTjJmgYzm2cKHJY/DUtSGUHoG67Nj6QTWe75WZoxO+NEnOq61fspGA8WbWpgsd ocs/ylb8Bw29tgtxDdut/YdPlqaQ7FgnbF4b1G8jTnDXAxRMpPuvYgkQy+IvRQQoQ5N3 XsDA== X-Received: by 10.49.73.232 with SMTP id o8mr18931100qev.0.1362150950327; Fri, 01 Mar 2013 07:15:50 -0800 (PST) Original-Received: by 10.49.2.106 with HTTP; Fri, 1 Mar 2013 07:15:50 -0800 (PST) In-Reply-To: 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:71984 Archived-At: On Fri, Mar 1, 2013 at 12:31 AM, Stefan Monnier wrote: > > >> Y see, that looks fine. If you can prepare a patch for it, I'd > >> be very happy to install it. Or can we simply take all the > >> "\e[27;NN,MM~" and add a corresponding "\e[MM;NNu"? If so, I can > >> write the patch myself. > > Yes, I think so. Maybe this is the better way than checking terminal > > capacities and then deciding to enable which format. > > Can you confirm that the patch below works for your formatOtherKeys=3D1 c= ase? There is no problem in the patch itself. But the xterm extra capability su= pport 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". The number before the first semi-colon could be many different values, acco= rding to http://invisible-island.net/xterm/ctlseqs/ctlseqs.html section "Send Device Attributes (Secondary DA)": P p =3D 0 =E2=86=92 =E2=80=98=E2=80=98VT100=E2=80=99=E2=80=99. P p =3D 1 =E2=86=92 =E2=80=98=E2=80=98VT220=E2=80=99=E2=80=99. P p =3D 2 =E2=86=92 =E2=80=98=E2=80=98VT240=E2=80=99=E2=80=99. P p =3D 1 8 =E2=86=92 =E2=80=98=E2=80=98VT330=E2=80=99=E2=80=99. P p =3D 1 9 =E2=86=92 =E2=80=98=E2=80=98VT340=E2=80=99=E2=80=99. P p =3D 2 4 =E2=86=92 =E2=80=98=E2=80=98VT320=E2=80=99=E2=80=99. P p =3D 4 1 =E2=86=92 =E2=80=98=E2=80=98VT420=E2=80=99=E2=80=99. P p =3D 6 1 =E2=86=92 =E2=80=98=E2=80=98VT510=E2=80=99=E2=80=99. P p =3D 6 4 =E2=86=92 =E2=80=98=E2=80=98VT520=E2=80=99=E2=80=99. P p =3D 6 5 =E2=86=92 =E2=80=98=E2=80=98VT525=E2=80=99=E2=80=99. The default value is 41 (in xterm latest version manual). Would you fix this bug by the way? > Stefan BR/ Victor Ren > > =3D=3D=3D modified file 'lisp/term/xterm.el' > --- lisp/term/xterm.el 2013-02-12 17:36:54 +0000 > +++ lisp/term/xterm.el 2013-02-28 16:30:30 +0000 > @@ -251,120 +251,124 @@ > > ;; These keys are available in xterm starting from version 216 > ;; if the modifyOtherKeys resource is set to 1. > - > - (define-key map "\e[27;5;9~" [C-tab])