From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Drew Adams <drew.adams@oracle.com>
Cc: Alan Mackenzie <acm@muc.de>, 30217@debbugs.gnu.org
Subject: bug#30217: Ambiguity in NEWS in emacs-26.0.91
Date: Tue, 23 Jan 2018 18:00:03 -0500 [thread overview]
Message-ID: <87y3komb9o.fsf@users.sourceforge.net> (raw)
In-Reply-To: <1a1fbaea-f291-414d-aaef-bf41ea4a5873@default> (Drew Adams's message of "Tue, 23 Jan 2018 07:53:49 -0800 (PST)")
On Tue, Jan 23, 2018 at 10:53 AM, Drew Adams <drew.adams@oracle.com> wrote:
> An Emacs-Lisp file can contain pretty much anything,
> including lots of natural-language text. Are we now
> issuing warnings even for "smart quotes" in comments
> and strings?
Errors will be issued, but only for those occurring at the beginning of
a symbol. String and comment contents will remain unaffected.
>> it produces an obscure error message.
>>
>> The Emacs 25 error for the expression in question is
>> (wrong-number-of-arguments setq 31)
>
> Which tells you pretty much that setq is missing an
> argument or has too many, which makes you look at its
> arguments. Not so obscure. And accurate.
And yet, Alan said
This has wasted a lot of time identifying the problem, and
fruitlessly searching for a solution in the Emacs and Elisp manuals,
etc.
So maybe it's accurate in a narrow technical sense, but not in a
practically useful one.
> (setq ’bar 42)
> (setq foo ’bar)
>
> That's perfectly fine Lisp, even if it might not be
> what some might expect. But now, after your "fix",
> the first sexp raises an error - at read time, no less.
Yes, that code no longer works, you would have to write
(setq \’bar 42)
(setq foo \’bar)
I don't consider this a big loss. As far as I can see, this will just
make it harder to write obfuscated lisp code (although there will remain
plenty of other ways to obfuscate lisp code).
> And this still raises no error:
> (setq a’bar 42).
Yes, it would be more difficult implementation-wise to catch that case,
and it seems much less likely to come up in practice.
> Aside from the error/warning, such _escaping_ is another
> bad idea. It too subtracts from Lisp (while adding
> nonsense to it).
Nothing about escaping has changed.
> IMHO, this "fix" - all of its parts - should be reverted
[...]
> To be clear, though, I'm in favor of neither of those
[...]
> To be really clear, the fix proposed should be removed.
Thanks for trying to be clear, but repeating yourself like this just
makes your message longer, and therefore harder to comprehend.
I would really appreciate it if you would write shorter and more focused
messages, with less emotional rhetoric. Keep the "emotional
temperature" low (see https://freenode.net/changuide, which is about
IRC, but the same principles apply to email conversations).
>> Maybe everything in the "Unicode confusables" listing? Practically
>> speaking, I've never heard of problems with other characters, except
>> perhaps in programming "puzzles", obfuscated code contents and the like.
>
> There are lots of chars that can be confused, especially
> given the possibility of different fonts. I didn't even
> mention other variants of brackets (aka square brackets),
> braces (aka curly brackets), angle brackets, etc.
>
> Would you try to protect a user from the confusion of
> copy+pasting FULLWIDTH LEFT CURLY BRACKET FF5B{ in place
> of LEFT CURLY BRACKET 7B { in a doc string ("... \\{...}")
> or in a regexp? Or of using LEFT WHITE SQUARE BRACKET
> 301A 〚 in place of [ in a vector?
I don't plan to spend any effort towards that, no, although I wouldn't
necessarily be opposed to it.
next prev parent reply other threads:[~2018-01-23 23:00 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-22 22:17 bug#30217: Ambiguity in NEWS in emacs-26.0.91 Alan Mackenzie
2018-01-22 22:42 ` Drew Adams
2018-01-23 0:42 ` Noam Postavsky
2018-01-23 0:56 ` Drew Adams
2018-01-23 1:40 ` Noam Postavsky
2018-01-23 6:07 ` Drew Adams
2018-01-23 6:21 ` Drew Adams
2018-01-23 12:54 ` Noam Postavsky
2018-01-23 15:53 ` Drew Adams
2018-01-23 23:00 ` Noam Postavsky [this message]
2018-01-23 23:19 ` Drew Adams
2018-01-24 0:02 ` Noam Postavsky
2018-01-28 15:52 ` Noam Postavsky
2018-02-02 18:52 ` Drew Adams
2018-02-02 19:08 ` Noam Postavsky
2018-02-02 21:37 ` Drew Adams
2018-02-02 22:14 ` Ista Zahn
2018-02-02 22:35 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y3komb9o.fsf@users.sourceforge.net \
--to=npostavs@users.sourceforge.net \
--cc=30217@debbugs.gnu.org \
--cc=acm@muc.de \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.