From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#20852: 24.3; update-file-autoloads doesn't accept unescaped parenthesis character literal Date: Sun, 28 Jun 2015 13:12:09 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bb709d2066652051993b94c X-Trace: ger.gmane.org 1435497205 3561 80.91.229.3 (28 Jun 2015 13:13:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Jun 2015 13:13:25 +0000 (UTC) Cc: 20852@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 28 15:13:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9COV-0001sb-AS for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 15:13:11 +0200 Original-Received: from localhost ([::1]:39001 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9COU-0003Fs-Ed for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jun 2015 09:13:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9COR-0003Fn-6L for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 09:13:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9COM-0006p6-RK for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 09:13:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9COM-0006oy-Lw for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 09:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z9COM-000757-42 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2015 09:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2015 13:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20852 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 20852-submit@debbugs.gnu.org id=B20852.143549714727181 (code B ref 20852); Sun, 28 Jun 2015 13:13:02 +0000 Original-Received: (at 20852) by debbugs.gnu.org; 28 Jun 2015 13:12:27 +0000 Original-Received: from localhost ([127.0.0.1]:59807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9CNm-00074K-0N for submit@debbugs.gnu.org; Sun, 28 Jun 2015 09:12:26 -0400 Original-Received: from mail-wg0-f48.google.com ([74.125.82.48]:36285) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9CNk-000747-E7 for 20852@debbugs.gnu.org; Sun, 28 Jun 2015 09:12:25 -0400 Original-Received: by wguu7 with SMTP id u7so121102122wgu.3 for <20852@debbugs.gnu.org>; Sun, 28 Jun 2015 06:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=wIWkcGkgl6oMg7urJanPbx97htRomWFdQKhYb3C+3gI=; b=hVeXKHssWIoELlZXIiFCHChDM6REmMhek4CrqwofXS5RMW6pGoiZQ1qqpfDWOBHq29 KrPTs8kD1e8cee7rV/toq6n6FTQ1K0S5HiZeq/wOEI0fuf7Oc+r3CMf+3O7o894GQ+LG eyoK45ul05AnErp1Xxgcbn77T5rA+AQdwQXEoBE0T3c9hU4gP0+C1ig/V7zbtUvEefkV ZPIW1ecrosGqmxrtWDTeF4dx9IHzJ9M+mPtwExTJOA1IXdvo5g1fUrtUTm/CF8jp067B voIX63RZQgg3anFZ/kTyF1Kj7memVM7c+Umx556rdD+cP8ugu3wRbzgJHlqxxA9jhgkN Zmxw== X-Received: by 10.195.11.168 with SMTP id ej8mr20097973wjd.150.1435497138642; Sun, 28 Jun 2015 06:12:18 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:104431 Archived-At: --047d7bb709d2066652051993b94c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Stefan Monnier schrieb am Mo., 22. Juni 2015 um 03:18 Uhr: > > If this is generally unsupported, can we then remove it from the doc an= d > > 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 =E2=80=98\=E2=80=99 so that the Emacs commands for editi= ng Lisp code don=E2=80=99t get confused. For example, =E2=80=98?\(=E2=80=99 is the way t= o write the open-paren character. If the character is =E2=80=98\=E2=80=99, you must use a second = =E2=80=98\=E2=80=99 to quote it: =E2=80=98?\\=E2=80=99." 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 =E2=80=98()\|;'`"#.,=E2=80=99 to avoid confusing the Emacs commands for edi= ting 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. --047d7bb709d2066652051993b94c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Stefan= Monnier <monnier@iro.umontr= eal.ca> schrieb am Mo., 22. Juni 2015 um 03:18=C2=A0Uhr:
> If this is generally unsupported, can we = then remove it from the doc and

Yes.=C2=A0 Do you happen to know where it's documented?


"You can use the same syntax for punctuation characters, but it is = often a good idea to add a =E2=80=98\=E2=80=99 so that the Emacs commands f= or editing Lisp code don=E2=80=99t get confused. For example, =E2=80=98?\(= =E2=80=99 is the way to write the open-paren character. If the character is= =E2=80=98\=E2=80=99, you must use a second =E2=80=98\=E2=80=99 to quote it= : =E2=80=98?\\=E2=80=99."

Here I would put ( = and ) into the same category as \, so that it's not only "a good i= dea" to escape it.

"However, you should = add a backslash before any of the characters =E2=80=98()\|;'`"#.,= =E2=80=99 to avoid confusing the Emacs commands for editing Lisp code."= ;

Here I would make escaping mandatory for the fir= st three characters (or even for all of them).
=C2=A0

> have the reader print a warning (or reject it altogether)?

We can't reject it, because I'm pretty sure there's code out th= ere which
uses it.=C2=A0 I'd accept a patch which adds a warning for it,



OK, I'll try to come up with a pat= ch.=C2=A0
--047d7bb709d2066652051993b94c--