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: João Távora
Subject: bug#51089: 28.0.60; Using read-symbol-shorthands (("-" . "foo-")) shouldn't shadow the '-' symbol
Date: Fri, 8 Oct 2021 15:02:32 +0100

On Fri, Oct 8, 2021 at 12:05 PM Eli Zaretskii <eliz@gnu.org> wrote:

> If so, then I think I agree.  it'd be just a generalization of what I
> suggested.

Then let's go for it.

OK.

I'll come up with a C patch when I have time if no-one beats me to it (what is
the easiest C-way of checking if every character is a multibyte string is
punctuation?  Call into Elisp?)
 
> >> (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?

Sounded like one :-) At any rate, different from the negative points you make
which I still suspect were made on some later misunderstanding.  It'd be
nice to know that you understand what this alternative does, and if indeed
it was not a misunderstanding, also to understand why you think it's "artificial"
and what are my "personal opinions about the use of this feature" that you
were referring to. 

It's not that your "no punctuation only" fix doesn't cut it for now (I think it does),
but someday we might want to enhance it and maybe use similar technique
to (2).

Thanks,
João

reply via email to

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