bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51089: 28.0.60; Using read-symbol-shorthands (("-" . "foo-")) should


From: Eli Zaretskii
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

> From: João Távora <joaotavora@gmail.com>
> Cc: 51089@debbugs.gnu.org,  rms@gnu.org
> Date: Fri, 08 Oct 2021 08:43:46 +0100
> 
> Eli Zaretskii <eliz@gnu.org> 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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]