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 09:13:22 -0700 (PDT) Message-ID: <1d10d47c-2777-4c8f-89a3-e2693262391c@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>> 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="24239"; 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 18:35:13 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 1kSjk7-000665-0c for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 18:35:11 +0200 Original-Received: from localhost ([::1]:58648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSjk5-0002lH-WB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Oct 2020 12:35:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSjRa-0000uZ-2A for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 12:16:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSjRZ-000304-NC for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 12:16:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSjRZ-0007rR-Is for bug-gnu-emacs@gnu.org; Wed, 14 Oct 2020 12:16: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 16:16: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.160269213430176 (code B ref 12535); Wed, 14 Oct 2020 16:16:01 +0000 Original-Received: (at 12535) by debbugs.gnu.org; 14 Oct 2020 16:15:34 +0000 Original-Received: from localhost ([127.0.0.1]:52878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSjR8-0007qd-CI for submit@debbugs.gnu.org; Wed, 14 Oct 2020 12:15:34 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:48544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSjR5-0007qP-I9 for 12535@debbugs.gnu.org; Wed, 14 Oct 2020 12:15:32 -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 09EGEYu5161232; Wed, 14 Oct 2020 16:15:26 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=od4rMkCwEQTyDh8IMAtUkRiqzZ4WuR+lcix7bbZuWJU=; b=SYLjJNVIvbfZzX3B6rtDynhRcl2gVkUVgNMRz7QmQc0G/o1N2x1am7N04iVqsUYhwYSg 7X80b7pu/G2EJjDGTCuXOeGxZvmfcfl5ZS6nymqAsiXL8VFSnwCNYo0aHPu3jxFI3R2N /J1xfPRC75s2+2VutaTsNB0Hc3JJ7FsFXTpgrrR9fG4o8zrmy05Hl4wMsN+XsbTwHaRc oAVuGhg8hEYKnGT82KYDoVp6/IQGds0h0yqDgJN7Lp9Gt6QrUWrrJzvUOvMGhGXW5HqK xSRdp8607pj4Mpz3YvJ+W+QuCHG9hVCt11eBA98PfIFkoYZtoF61fQwqle2Zzd2KIlIB Ow== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 343pajy3wt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 14 Oct 2020 16:15:25 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 09EFsaE6027342; Wed, 14 Oct 2020 16:13:25 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 343pvy22x5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 14 Oct 2020 16:13:25 +0000 Original-Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 09EGDNjw016578; Wed, 14 Oct 2020 16:13:23 GMT In-Reply-To: <<83o8l4zwda.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=9773 signatures=668681 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 adultscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2010140114 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9773 signatures=668681 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-2010140115 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:190511 Archived-At: > > If so, that's incorrect - the bug is still present. >=20 > 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? `kbd' and `edmacro-parse-keys' treat them both the same. Likewise, all the others in the same clause: "\\<\\(NUL\\|RET\\|LFD\\|ESC\\|SPC\\|DEL\\)$" 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. IOW, isn't your saying that they are different keys just another way of saying what `edmacro-parse-keys' does currently? Isn't it just proclaiming that there's no bug because what is, is right? It's quite possible I'm missing something, in which case please let me know what. So far, I don't know of a good explanation, and I haven't found one in the doc or code comments. I understand why we treat differently from TAB. I don't understand why we treat differently from TAB. Why is TAB not handled like NUL, RET, etc.? They're all ASCII control chars. (They aren't like the case of F9, , and .) Thanks for thinking about this, and perhaps finding a good explanation/rationalization.