From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#12535: 24.2.50; [PATCH] `edmacro-parse-keys' is incorrect for M- Date: Wed, 14 Oct 2020 10:22:13 -0700 (PDT) Message-ID: <44cea5c7-a487-484c-9b6f-37b823c56f31@default> References: <<<<584510D2C7DE47CBAE19B5058B21B51C@us.oracle.com>>>> <<<<87eh3ba7s9.fsf@building.gnus.org>>>> <<<>>> <<<<877fhuej87.fsf@gnus.org>>>> <<<>>> <<<<87bn4t7ih6.fsf@gnus.org>>>> <<<<2493efa4-e079-446c-8926-f7ee14c04ec9@default>>>> <<<<87eg9oa7kp.fsf@gnus.org>>>> <<<>>> <<<<6b5e4737-edb3-4f0c-b4e7-252330d3436e@default>>>> <<<<8736ji3vgs.fsf@gmail.com>>>> <<<<9551e332-3baf-49d0-a6ff-4b2432457d5d@default>>>> <<<<83r2717si6.fsf@gnu.org>>>> <<>> <<<83o8l4zwda.fsf@gnu.org>>> <<1d10d47c-2777-4c8f-89a3-e2693262391c@default>> <<83blh4zs93.fsf@gnu.org>> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39273"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 12535@debbugs.gnu.org, larsi@gnus.org, npostavs@gmail.com To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 14 19:23:19 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kSkUh-000A78-3s for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 19:23:19 +0200 Original-Received: from localhost ([::1]:53048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSkUg-0005ZS-1H for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 13:23:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSkUQ-0005XN-0J for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 13:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41375) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSkUP-0003FP-MQ for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 13:23:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSkUP-00012B-Jt for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 13:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Oct 2020 17:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12535 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12535-submit@debbugs.gnu.org id=B12535.16026961443917 (code B ref 12535); Wed, 14 Oct 2020 17:23:01 +0000 Original-Received: (at 12535) by debbugs.gnu.org; 14 Oct 2020 17:22:24 +0000 Original-Received: from localhost ([127.0.0.1]:52921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSkTo-000116-9a for submit@debbugs.gnu.org; Wed, 14 Oct 2020 13:22:24 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:47764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSkTm-00010t-49 for 12535@debbugs.gnu.org; Wed, 14 Oct 2020 13:22:22 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09EHKWLl088271; Wed, 14 Oct 2020 17:22:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=fnA5uIALM2f+i0LmuiOIikiVFgkypzoS2/EthtFvFe4=; b=l35IEge1dS6WFLAT9Db2oWTGZl/5Aga4lSwYld5LPmP1d57tTw4/U9RkoTHLdu/yWnG8 846aaJoEocUuVdOlvTQ3ftR4pLel9lHHlTQ8U56Vlws2ZSdKB6v4lDs1eqKGcgqZSmmC bamWWTZweC5OExzHy0N5eI1uPD13JyvYPJkbGIFq+7zZsRW0vXGiIuc1Mx4gP6Vj/NqG PjvYviKpi+QYhiAU8sljuwPRcP0d0w/bg8c6HzfTvFY/c2QM3gVosQVh09GfVQy3Nclr jnQljDx+ccm3BF/6AoY3QaDASPBMR6cndeHY7S601phHEQSpr5lSgYF3dYMmB17tc0rW Kg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 343pajyehx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 14 Oct 2020 17:22:16 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09EHFh1T121606; Wed, 14 Oct 2020 17:22:16 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 343phpvvys-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Oct 2020 17:22:15 +0000 Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 09EHMEHS015414; Wed, 14 Oct 2020 17:22:15 GMT In-Reply-To: <<83blh4zs93.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9774 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 adultscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010140124 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9774 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 adultscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 mlxscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010140124 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190514 Archived-At: > > > > If so, that's incorrect - the bug is still present. > > > > > > Btw, I'm not sure I agree with the proposed fix: and TAB are > > > different keys. > > > > Yes, but then why wouldn't we also consider and > > ESC to be different keys? >=20 > Because they aren't. >=20 > TAB is the ASCII character Ctrl-I, whereas 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. >=20 > > Likewise, all the others in the same clause: > > > > "\\<\\(NUL\\|RET\\|LFD\\|ESC\\|SPC\\|DEL\\)$" >=20 > We do have the same situation with DEL vs and . > But not with the others you mention. >=20 > > Why, for all of those, does Emacs consider 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 and TAB to be the same key. >=20 > You are missing the point: the brackets is not some syntactic sugar, > it is an indication of a function key, like and . That's the point - why are we interpreting as a function key, as if TAB were as unknown as foobar, which we handle as (unknown) function key ? Why aren't we interpreting TAB the same way we interpret ESC, RET, and SPC, that is, interpreting the same way we interpret , , and ? 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 . And which is (naturally, good) not considered the same (function) key as . But your Tab function key is written ? 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 , not . Something seems pretty arbitrary, here... Hysterical raisins or real logic? Why is TAB the odd man out?