all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, 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 10:22:13 -0700 (PDT)	[thread overview]
Message-ID: <44cea5c7-a487-484c-9b6f-37b823c56f31@default> (raw)
In-Reply-To: <<83blh4zs93.fsf@gnu.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>.

That's the point - why are we interpreting <TAB> as a
function key, as if TAB were as unknown as foobar, which
we handle as (unknown) function key <foobar>?  Why aren't
we interpreting TAB the same way we interpret ESC, RET,
and SPC, that is, interpreting <TAB> the same way we
interpret <ESC>, <RET>, and <SPC>?

You say Tab is a function key (you wrote it like that), at
least on some keyboards.  So is tab apparently, which Emacs
writes as <tab>.  And which is (naturally, good) not
considered the same (function) key as <TAB>.  But your Tab
function key is written <TAB>?

Are you sure there are no keyboards, or there won't be any,
that have a function key named Esc or ESC, Ret or RET, Del
or DEL, etc.?

My keyboard has a key labeled "Esc", but presumably it
sends an ASCII ESC code.  I understand that my keyboard
key labeled doesn't send an ASCII TAB code, but Emacs
calls it <tab>, not <TAB>.

Something seems pretty arbitrary, here...  Hysterical
raisins or real logic?  Why is TAB the odd man out?





       reply	other threads:[~2020-10-14 17:22 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>
     [not found]                             ` <<1d10d47c-2777-4c8f-89a3-e2693262391c@default>
     [not found]                               ` <<83blh4zs93.fsf@gnu.org>
2020-10-14 17:22                                 ` Drew Adams [this message]
2020-10-14 17:41                                   ` bug#12535: 24.2.50; [PATCH] `edmacro-parse-keys' is incorrect for M-<TAB> 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>
2020-10-14 16:13                             ` Drew Adams
2020-10-14 16:28                               ` Eli Zaretskii
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>
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

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

  git send-email \
    --in-reply-to=44cea5c7-a487-484c-9b6f-37b823c56f31@default \
    --to=drew.adams@oracle.com \
    --cc=12535@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.