From: Philipp Stephani <p.stephani2@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 20852@debbugs.gnu.org
Subject: bug#20852: 24.3; update-file-autoloads doesn't accept unescaped parenthesis character literal
Date: Sun, 28 Jun 2015 13:12:09 +0000 [thread overview]
Message-ID: <CAArVCkQ9FG9hZos8g5oKG1FUss9nncFGVVqp-QfHR6yoE3p-PQ@mail.gmail.com> (raw)
In-Reply-To: <jwv616g4k4i.fsf-monnier+emacsbugs@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
Stefan Monnier <monnier@iro.umontreal.ca> schrieb am Mo., 22. Juni 2015 um
03:18 Uhr:
> > If this is generally unsupported, can we then remove it from the doc and
>
> Yes. Do you happen to know where it's documented?
>
https://www.gnu.org/software/emacs/manual/html_node/elisp/Basic-Char-Syntax.html
"You can use the same syntax for punctuation characters, but it is often a
good idea to add a ‘\’ so that the Emacs commands for editing Lisp code
don’t get confused. For example, ‘?\(’ is the way to write the open-paren
character. If the character is ‘\’, you must use a second ‘\’ to quote it:
‘?\\’."
Here I would put ( and ) into the same category as \, so that it's not only
"a good idea" to escape it.
"However, you should add a backslash before any of the characters
‘()\|;'`"#.,’ to avoid confusing the Emacs commands for editing Lisp code."
Here I would make escaping mandatory for the first three characters (or
even for all of them).
>
> > have the reader print a warning (or reject it altogether)?
>
> We can't reject it, because I'm pretty sure there's code out there which
> uses it. I'd accept a patch which adds a warning for it,
>
>
>
OK, I'll try to come up with a patch.
[-- Attachment #2: Type: text/html, Size: 1955 bytes --]
next prev parent reply other threads:[~2015-06-28 13:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-19 19:22 bug#20852: 24.3; update-file-autoloads doesn't accept unescaped parenthesis character literal Philipp Stephani
2015-06-19 21:24 ` Stefan Monnier
2015-06-21 12:13 ` Philipp Stephani
2015-06-22 1:18 ` Stefan Monnier
2015-06-28 13:12 ` Philipp Stephani [this message]
2015-06-30 20:43 ` Philipp Stephani
2015-07-02 15:50 ` Stefan Monnier
[not found] ` <20170501142718.3510-1-phst@google.com>
2017-05-01 17:59 ` bug#20852: [PATCH] Warn about missing backslashes during load Stefan Monnier
2017-05-01 18:41 ` Philipp Stephani
2017-05-06 21:14 ` [PATCH] Make `old-style-backquotes' variable internal Philipp
2017-05-07 2:31 ` Eli Zaretskii
2017-05-07 11:49 ` Philipp
2017-05-13 10:35 ` Philipp Stephani
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=CAArVCkQ9FG9hZos8g5oKG1FUss9nncFGVVqp-QfHR6yoE3p-PQ@mail.gmail.com \
--to=p.stephani2@gmail.com \
--cc=20852@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.