From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51089: 28.0.60; Using read-symbol-shorthands (("-" . "foo-")) shouldn't shadow the '-' symbol Date: Fri, 08 Oct 2021 14:04:52 +0300 Message-ID: <835yu7zsiz.fsf@gnu.org> References: <871r4w8sza.fsf@gmail.com> <83ee8wysk5.fsf@gnu.org> <87v9286jwt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20532"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51089@debbugs.gnu.org, rms@gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 08 13:08:01 2021 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 1mYnjN-00056N-06 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Oct 2021 13:08:01 +0200 Original-Received: from localhost ([::1]:51786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYnjL-0004O6-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Oct 2021 07:07:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYnhS-0000qf-Fz for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 07:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYnhS-0004ic-5h for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 07:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYnhR-0006RB-Ua for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 07:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Oct 2021 11:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51089 X-GNU-PR-Package: emacs Original-Received: via spool by 51089-submit@debbugs.gnu.org id=B51089.163369115624731 (code B ref 51089); Fri, 08 Oct 2021 11:06:01 +0000 Original-Received: (at 51089) by debbugs.gnu.org; 8 Oct 2021 11:05:56 +0000 Original-Received: from localhost ([127.0.0.1]:49325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYnhL-0006Qp-QZ for submit@debbugs.gnu.org; Fri, 08 Oct 2021 07:05:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYnhL-0006Qd-1Z for 51089@debbugs.gnu.org; Fri, 08 Oct 2021 07:05:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52492) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYnhF-0004X6-Tr; Fri, 08 Oct 2021 07:05:49 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2550 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYngg-0007MA-BK; Fri, 08 Oct 2021 07:05:39 -0400 In-Reply-To: <87v9286jwt.fsf@gmail.com> (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Fri, 08 Oct 2021 08:43:46 +0100) 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:216706 Archived-At: > From: João Távora > Cc: 51089@debbugs.gnu.org, rms@gnu.org > Date: Fri, 08 Oct 2021 08:43:46 +0100 > > Eli Zaretskii writes: > > > Here's another idea: disallow the car from being a string that > > includes only punctuation characters. WDYT? > > That doesn't work, right? That's precisely what we want to include in > dash.el. > > (("-" . "magnar-dash-")) > > > So that e.g. the existing > > (defun -some ...) > > in dash.el can be read as if it had been written: > > (defun magnar-dash-some ...) > > Maybe you want to mean something else? Maybe you mean "disallow the > thing to be renamed to include only punctuation characters?". Yes, sorry. > If so, then I think I agree. it'd be just a generalization of what I > suggested. Then let's go for it. > >> (2) Another natural, more generic, way would be to demand that the > >> shorthand in the 'car's of the elements of read-symbol-shorthands is > >> strictly shorter then the form about to be renamed. In lread.c, I think > >> it would amount to this: > > > > I don't think I like this artificial restriction. > > I proposed and coded what I thought you had explicitly agreed with in > > https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg00100.html That wasn't really an agreement, was it?