unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: What's happened to M-<tab> `completion-at-point'?
Date: Wed, 4 May 2022 20:35:02 +0000	[thread overview]
Message-ID: <YnLjdilqtowL4Rlf@ACM> (raw)
In-Reply-To: <CAP_d_8Wdj0Z+N-tSPR2-kZmVUuGMHB-JnG76ns9NG_vG6FVt=A@mail.gmail.com>

Hello, Yuri.

On Thu, May 05, 2022 at 02:47:41 +0700, Yuri Khan wrote:
> On Thu, 5 May 2022 at 02:10, Alan Mackenzie <acm@muc.de> wrote:

> > I don't understand it either, yet.  To be sure that terminfo is the
> > problem, I'll have to do something like reinstalling the old version of
> > ncurses, and seeing the problem is no longer there.

> > But in src/term.c L1258 appears:

> >       {"kB", "backtab"},    /* terminfo */

> > The "kB" is a terminfo code for back-tab, and the "backtab" might
> > somehow be the source for the "[backtab] is undefined" error message.

> You might be on to something.

>     $ infocmp linux
>     #       Reconstructed via infocmp from file: /lib/terminfo/l/linux
>     linux|Linux console,
>             am, bce, ccc, eo, mir, msgr, xenl, xon,
>             …
>             kb2=\E[G, kbs=^?, kcbt=\E^I, kcub1=\E[D, kcud1=\E[B,
>             …

Thanks for the tip!  I didn't know about infocmp.

> In other words, the terminfo database declares a capability named
> ‘kcbt’ with the value ESC TAB. And ‘man terminfo’ says ‘kcbt’ is the
> backtab key.

I ran $ infocmp linux on the ncurses 6.3, then reinstalled 6.2 and did
it again.  A diff shows this:

--- /home/acm/infocmp-linux-6.2 2022-05-04 20:16:01.609557894 +0000
+++ /home/acm/infocmp-linux-6.3 2022-05-04 20:09:02.046581014 +0000
@@ -1,5 +1,5 @@
 #      Reconstructed via infocmp from file: /etc/terminfo/l/linux
-linux|linux console,
+linux|Linux console,
        am, bce, ccc, eo, mir, msgr, xenl, xon,
        colors#8, it#8, ncv#18, pairs#64,
        acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
@@ -14,7 +14,7 @@
        home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
        ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=\n,
        initc=\E]P%p1%x%p2%{255}%*%{1000}%/%02x%p3%{255}%*%{1000}%/%02x%p4%{255}%*%{1000}%/%02x,
-       kb2=\E[G, kbs=^?, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B,
+       kb2=\E[G, kbs=^?, kcbt=\E^I, kcub1=\E[D, kcud1=\E[B,
        kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
        kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,

..  So the one substantial change has been changing from kcbt=\E[Z to
kcbt=\E^I.  6.3 is instructing Emacs to interpret 0x19 0x09 as
back-tab, whereas before it was interpreted simply as ESC TAB.

This looks like it might be a bug in ncurses-6.3.

-- 
Alan Mackenzie (Nuremberg, Germany).



  parent reply	other threads:[~2022-05-04 20:35 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03 21:06 What's happened to M-<tab> `completion-at-point'? Alan Mackenzie
2022-05-04  6:32 ` Eli Zaretskii
2022-05-04 16:34   ` Alan Mackenzie
2022-05-04 16:40     ` Eli Zaretskii
2022-05-04 18:13       ` Alan Mackenzie
2022-05-04 18:55         ` Eli Zaretskii
2022-05-04 19:10           ` Alan Mackenzie
2022-05-04 19:47             ` Yuri Khan
2022-05-04 20:16               ` Stefan Monnier
2022-05-04 20:31                 ` Yuri Khan
2022-05-04 20:50                   ` Stefan Monnier
2022-05-04 21:07                   ` Alan Mackenzie
2022-05-05  5:03                     ` tomas
2022-05-05  6:20                     ` Eli Zaretskii
2022-05-05 16:57                       ` Alan Mackenzie
2022-05-05 17:28                         ` Eli Zaretskii
2022-05-06 23:19                           ` Richard Stallman
2022-05-07 11:03                             ` Alan Mackenzie
2022-05-08 23:35                               ` Richard Stallman
2022-05-04 20:35               ` Alan Mackenzie [this message]
2022-05-04 19:16           ` Tassilo Horn
2022-05-04 19:39             ` Eli Zaretskii
2022-05-04 19:45               ` Tassilo Horn
2022-05-04 19:57               ` Andreas Schwab
2022-05-04  6:33 ` Lars Ingebrigtsen
2022-05-04 16:26   ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YnLjdilqtowL4Rlf@ACM \
    --to=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=yuri.v.khan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).