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#45536: [PATCH] Pretty-print keys without <> around modifiers Date: Tue, 29 Dec 2020 12:14:33 -0800 (PST) Message-ID: References: <188d3006-24cf-4597-8c30-1009c62b269f@default> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33043"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45536@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 29 21:15:39 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 1kuLP9-0008Rb-Af for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Dec 2020 21:15:39 +0100 Original-Received: from localhost ([::1]:54094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kuLP7-0003N2-Ul for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Dec 2020 15:15:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kuLOY-0003Me-T7 for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 15:15:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56970) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kuLOY-000725-Lm for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 15:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kuLOY-0001PQ-HU for bug-gnu-emacs@gnu.org; Tue, 29 Dec 2020 15:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Dec 2020 20:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45536 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 45536-submit@debbugs.gnu.org id=B45536.16092728885386 (code B ref 45536); Tue, 29 Dec 2020 20:15:02 +0000 Original-Received: (at 45536) by debbugs.gnu.org; 29 Dec 2020 20:14:48 +0000 Original-Received: from localhost ([127.0.0.1]:40283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuLOK-0001On-2H for submit@debbugs.gnu.org; Tue, 29 Dec 2020 15:14:48 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:41308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kuLOG-0001OY-Oo for 45536@debbugs.gnu.org; Tue, 29 Dec 2020 15:14:47 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BTK9V1k093130; Tue, 29 Dec 2020 20:14:36 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=m81JtPr8ptOj7YbI2bp+kb3PNNmC+DK3MeJH2M48gcM=; b=LuXoZ7MQUORySr5TO0AcuYhcWBATsDj/vh/+vD/pgUNNTnu08UAvY96otXjk9l8i/994 1ItDyVGeTiy5gHb52UDCWkF5D0er89+d5/unY3akvGk4IV24/tNR9a90CxNDUqy4jbjn Ttdt52RxS+2651BLlrUc3T1zxt4JPoiTwkyRHeO+7O7rLMqtdNmCr8GWkNVK9CCJy5a8 CNX1T4zTPIR6qyrT87f2DPnyKHIBlh41flEIPeXzV/3dWMi/amIuK/EOrUFm6yub0M42 pwKWn5RhzEvFiGvBAoPJ427x92++aHQWz8rhixFM0R2LHXFU8XbdnMBkSgv1VEyNZyD4 WQ== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 35nvkqq7dv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 29 Dec 2020 20:14:36 +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 0BTKAwvi161458; Tue, 29 Dec 2020 20:14:36 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3030.oracle.com with ESMTP id 35pf3x29ax-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 29 Dec 2020 20:14:36 +0000 Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0BTKEYjT008202; Tue, 29 Dec 2020 20:14:34 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5095.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9849 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 suspectscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012290123 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9849 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 adultscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012290123 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:196972 Archived-At: > Thank you. This proposal is not nearly as radical (or opinionated) but ai= ms > to bring back logic and consistency to the notation. > In particular, it carefully preserves round-trip compatibility with `kbd` > (which remains unchanged). `kbd' remains unchanged with `naked.el' as well. The library just provides function `naked' as an addition - an alternative to `kbd'. And `naked.el' nevertheless lets you use angle brackets, even with its own functions, whenever you still might want to for some reason. It does that with an optional arg. And even without providing the optional arg, `naked' accepts angle-bracketed key descriptions on input, e.g. (naked "M-") returns the same thing as (naked "M-foobar"): [M-foobar]. Prior to Emacs 21, Emacs itself never bothered with angle brackets - no need. But someone around the turn of the century got the idea that Emacs could not do without them. Now they're apparently believed to be indispensable, because their use is enforced. > It is good that you posted the links, because it indicates that more peop= le > have desired something similar, and the existence of such attempts gives = some > reassurance that the presented more timid patch would not cause any probl= ems. I've desired it because I lived it prior to Emacs 21, and I find it MUCH clearer.