[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?
From: |
Noam Postavsky |
Subject: |
Re: Change of Lisp syntax for "fancy" quotes in Emacs 27? |
Date: |
Tue, 9 Oct 2018 10:43:00 -0400 |
On Fri, 5 Oct 2018 at 19:02, Paul Eggert <address@hidden> wrote:
>
> On 10/5/18 1:43 AM, Eli Zaretskii wrote:
> > the commonly accepted mechanism of
> > pointing out potentially wrong constructs is by visual cues and
> > warning messages
>
> If we decide that Elisp source code must be able to abuse confusable
> characters, then of course we should allow such abuse and support it as
> best we can, including selective highlighting and whatnot to try to warn
> readers of the abuse. Such support won't work outside Emacs, but people
> using non-Emacs programs to look at Elisp code will simply be out of luck.
The problem is that deciding which characters are confusable and hence
require backslash escaping is based on a shifting mess of heuristics.
So I don't think it's workable to signal a hard error for this. Both
in terms of false positives which could mean possibly breaking code,
and false negatives which means we would be giving a false sense of
security. That's why I proposed adding highlighting and enhancing
existing error messages instead. Of course adding warnings would also
make sense.
By the way, your EN SPACE example already gives a compile warning:
Warning: Unused lexical variable ‘data data’
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, (continued)
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Garreau\, Alexandre, 2018/10/06
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Garreau\, Alexandre, 2018/10/06
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Eli Zaretskii, 2018/10/06
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Garreau\, Alexandre, 2018/10/06
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Eli Zaretskii, 2018/10/06
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Noam Postavsky, 2018/10/24
- Unicode security-issues workarounds elsewhere [Was: Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?], Garreau\, Alexandre, 2018/10/06
- Re: Unicode security-issues workarounds elsewhere [Was: Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?], Eli Zaretskii, 2018/10/06
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Paul Eggert, 2018/10/06
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Stefan Monnier, 2018/10/06
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?,
Noam Postavsky <=
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Paul Eggert, 2018/10/09
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Eli Zaretskii, 2018/10/09
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Paul Eggert, 2018/10/09
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Andreas Schwab, 2018/10/09
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Aaron Ecay, 2018/10/10
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Garreau\, Alexandre, 2018/10/10
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Eli Zaretskii, 2018/10/10
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Eli Zaretskii, 2018/10/10
- RE: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Drew Adams, 2018/10/10
- Re: Change of Lisp syntax for "fancy" quotes in Emacs 27?, Yuri Khan, 2018/10/10