unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 12535@debbugs.gnu.org, larsi@gnus.org, npostavs@gmail.com
Subject: bug#12535: 24.2.50; [PATCH] `edmacro-parse-keys' is incorrect for M-<TAB>
Date: Wed, 14 Oct 2020 19:28:40 +0300	[thread overview]
Message-ID: <83blh4zs93.fsf@gnu.org> (raw)
In-Reply-To: <1d10d47c-2777-4c8f-89a3-e2693262391c@default> (message from Drew Adams on Wed, 14 Oct 2020 09:13:22 -0700 (PDT))

> Date: Wed, 14 Oct 2020 09:13:22 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: npostavs@gmail.com, 12535@debbugs.gnu.org, larsi@gnus.org
> 
> > > If so, that's incorrect - the bug is still present.
> > 
> > Btw, I'm not sure I agree with the proposed fix: <TAB> and TAB are
> > different keys.
> 
> Yes, but then why wouldn't we also consider <ESC> and
> ESC to be different keys?

Because they aren't.

TAB is the ASCII character Ctrl-I, whereas <TAB> is the _function_ key
Tab.  Modern keyboards can produce both, and Emacs maps the latter to
the former.  But there's no function key Esc on the keyboard.

> Likewise, all the others in the same clause:
> 
> "\\<\\(NUL\\|RET\\|LFD\\|ESC\\|SPC\\|DEL\\)$"

We do have the same situation with DEL vs <Delete> and <Backspace>.
But not with the others you mention.

> Why, for all of those, does Emacs consider <WORD> and
> WORD to be the same key, where WORD is any of those
> ASCII control-char names (NUL, RET, LFD, ESC, SPC, DEL),
> but it doesn't consider <TAB> and TAB to be the same key.

You are missing the point: the brackets is not some syntactic sugar,
it is an indication of a function key, like <F1> and <DOWN>.





  reply	other threads:[~2020-10-14 16:28 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<<584510D2C7DE47CBAE19B5058B21B51C@us.oracle.com>
     [not found] ` <<<87eh3ba7s9.fsf@building.gnus.org>
     [not found]   ` <<<ebe2c1ae-e3b2-47fe-94e5-841990beb724@default>
     [not found]     ` <<<877fhuej87.fsf@gnus.org>
     [not found]       ` <<<ad8ef861-3ff5-42d8-851e-edaf894ce0a0@default>
     [not found]         ` <<<87bn4t7ih6.fsf@gnus.org>
     [not found]           ` <<<2493efa4-e079-446c-8926-f7ee14c04ec9@default>
     [not found]             ` <<<87eg9oa7kp.fsf@gnus.org>
     [not found]               ` <<<m3k1d76qgn.fsf@gnus.org>
     [not found]                 ` <<<6b5e4737-edb3-4f0c-b4e7-252330d3436e@default>
     [not found]                   ` <<<8736ji3vgs.fsf@gmail.com>
     [not found]                     ` <<<9551e332-3baf-49d0-a6ff-4b2432457d5d@default>
     [not found]                       ` <<<83r2717si6.fsf@gnu.org>
     [not found]                         ` <<de9af715-ee6a-463e-9d91-4ae753f49c00@default>
     [not found]                           ` <<83o8l4zwda.fsf@gnu.org>
2020-10-14 16:13                             ` bug#12535: 24.2.50; [PATCH] `edmacro-parse-keys' is incorrect for M-<TAB> Drew Adams
2020-10-14 16:28                               ` Eli Zaretskii [this message]
2020-10-16  4:07                                 ` Richard Stallman
2020-10-16  6:08                                   ` Eli Zaretskii
     [not found] <<<<584510D2C7DE47CBAE19B5058B21B51C@us.oracle.com>
     [not found] ` <<<<87eh3ba7s9.fsf@building.gnus.org>
     [not found]   ` <<<<ebe2c1ae-e3b2-47fe-94e5-841990beb724@default>
     [not found]     ` <<<<877fhuej87.fsf@gnus.org>
     [not found]       ` <<<<ad8ef861-3ff5-42d8-851e-edaf894ce0a0@default>
     [not found]         ` <<<<87bn4t7ih6.fsf@gnus.org>
     [not found]           ` <<<<2493efa4-e079-446c-8926-f7ee14c04ec9@default>
     [not found]             ` <<<<87eg9oa7kp.fsf@gnus.org>
     [not found]               ` <<<<m3k1d76qgn.fsf@gnus.org>
     [not found]                 ` <<<<6b5e4737-edb3-4f0c-b4e7-252330d3436e@default>
     [not found]                   ` <<<<8736ji3vgs.fsf@gmail.com>
     [not found]                     ` <<<<9551e332-3baf-49d0-a6ff-4b2432457d5d@default>
     [not found]                       ` <<<<83r2717si6.fsf@gnu.org>
     [not found]                         ` <<<de9af715-ee6a-463e-9d91-4ae753f49c00@default>
     [not found]                           ` <<<83o8l4zwda.fsf@gnu.org>
     [not found]                             ` <<1d10d47c-2777-4c8f-89a3-e2693262391c@default>
     [not found]                               ` <<83blh4zs93.fsf@gnu.org>
2020-10-14 17:22                                 ` Drew Adams
2020-10-14 17:41                                   ` Eli Zaretskii
     [not found] <<584510D2C7DE47CBAE19B5058B21B51C@us.oracle.com>
     [not found] ` <<87eh3ba7s9.fsf@building.gnus.org>
     [not found]   ` <<ebe2c1ae-e3b2-47fe-94e5-841990beb724@default>
     [not found]     ` <<877fhuej87.fsf@gnus.org>
     [not found]       ` <<ad8ef861-3ff5-42d8-851e-edaf894ce0a0@default>
     [not found]         ` <<87bn4t7ih6.fsf@gnus.org>
     [not found]           ` <<2493efa4-e079-446c-8926-f7ee14c04ec9@default>
     [not found]             ` <<87eg9oa7kp.fsf@gnus.org>
     [not found]               ` <<m3k1d76qgn.fsf@gnus.org>
     [not found]                 ` <<6b5e4737-edb3-4f0c-b4e7-252330d3436e@default>
     [not found]                   ` <<8736ji3vgs.fsf@gmail.com>
     [not found]                     ` <<9551e332-3baf-49d0-a6ff-4b2432457d5d@default>
     [not found]                       ` <<83r2717si6.fsf@gnu.org>
2012-09-28 21:37                         ` Drew Adams
2014-02-10  4:52                           ` Lars Ingebrigtsen
2014-02-10  5:02                             ` Drew Adams
2016-02-24  6:05                               ` Lars Ingebrigtsen
2016-02-24 15:15                                 ` Drew Adams
2016-04-28 17:26                                   ` Lars Ingebrigtsen
2016-04-29  0:32                                     ` Drew Adams
2016-04-29 13:05                                       ` Lars Ingebrigtsen
2019-06-27 14:41                                         ` Lars Ingebrigtsen
2019-06-27 16:21                                           ` Drew Adams
2019-07-07 12:00                                             ` Noam Postavsky
2019-07-07 15:34                                               ` Drew Adams
2019-07-07 15:51                                                 ` Eli Zaretskii
2020-10-14  5:18                           ` Drew Adams
     [not found]                         ` <de9af715-ee6a-463e-9d91-4ae753f49c00@default>
2020-10-14 14:59                           ` Eli Zaretskii

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=83blh4zs93.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12535@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=larsi@gnus.org \
    --cc=npostavs@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).