From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Aaron Ecay Newsgroups: gmane.emacs.devel Subject: Re: Change of Lisp syntax for "fancy" quotes in Emacs 27? Date: Sat, 03 Feb 2018 18:13:27 +0000 Message-ID: <87shaigcvs.fsf@gmail.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1517681512 7104 195.159.176.226 (3 Feb 2018 18:11:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Feb 2018 18:11:52 +0000 (UTC) User-Agent: Notmuch/0.25.2 (https://notmuchmail.org) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Drew Adams To: Noam Postavsky , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 03 19:11:48 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ei2Hu-0001Dq-KY for ged-emacs-devel@m.gmane.org; Sat, 03 Feb 2018 19:11:42 +0100 Original-Received: from localhost ([::1]:59296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ei2Jv-0002JL-Os for ged-emacs-devel@m.gmane.org; Sat, 03 Feb 2018 13:13:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ei2Jj-0002HR-BP for emacs-devel@gnu.org; Sat, 03 Feb 2018 13:13:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ei2Jf-0004OY-BS for emacs-devel@gnu.org; Sat, 03 Feb 2018 13:13:35 -0500 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:54895) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ei2Jf-0004OE-3z for emacs-devel@gnu.org; Sat, 03 Feb 2018 13:13:31 -0500 Original-Received: by mail-wm0-x22a.google.com with SMTP id i186so18713111wmi.4 for ; Sat, 03 Feb 2018 10:13:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=Vzy+E1/GxRxsZ+zOxs48gKmdKQ2C51HYhxfd/wQW+qA=; b=elYbkHa+Mz1DndkL1GLtTQqNrsUtVtjoa6WRlXn0j3dTlqMAfiD4Ob4IHnRsf1Mg00 BpKJgVx1oAQ3CukdaWwiS4MF24oezRdhxI0NZlAyRznbzUwYzVDyGiBYlRZgHB19ZkBr ZP2M20yO39KOYThrkF8z/5oBW96EnhvjT9u1nCoYFHHvwWGf3Zzmcq1A7Z5c4WXwP1l+ Gay4uYrfTbSv3T9DxRqRmpu4Mn1cdis77FF1/aAZSm9GKQSlclNOw1/uyfvn0Um3kUx7 m6gJafzNx8tM8Pff5i6uq0+Ja2z7vgU2Rn0nrkQz1X6i+xTMXnQrdWKEBIIVDdc/gtwW n7Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=Vzy+E1/GxRxsZ+zOxs48gKmdKQ2C51HYhxfd/wQW+qA=; b=MyVgQZ6JiPkZRrQB7vOzrEJZkqgJHKJGm/VjflXT5iGyslXVMQIB3qTAYgQs6u0R1g xNIXfM6f2vX4zFYfP0yFb/Yt8tmxRuLy5QaDettN6nPZpFSSskpGhNqH2HE9hOHZ+ACb qwDUE2ia1ioDfoDt2wkq0Cnp1d4b2PUXCBkVvVkRgH0luQE03LfO2DyrJDaEToyjWDMj CrpeBb+fE6Y4pIhNYfdBqso4RAFwCq++KUOZLJPzuGSO/AO4kKjRYlSM5okTrHQIxqZm msZ5FNf5yE2UV6ObeoB9z22Uzqtay0ZtstDjFhw9dvGTUvJbqhxAENBicgUtM5qkH+ld bybg== X-Gm-Message-State: AKwxytdahBn4TybW6uF/5YmRl6VwTOpB2yQeS6y/jxhPHTMNFZHfWJCg w7+c1grBlEVHtFFHn5UGz9yOHmc8 X-Google-Smtp-Source: AH8x226PD0jsRvp4ktgNUts8KA9yXNiTzgwLXZWFQfgHNqeKgvQ/YDXacO1gGtBnPwCU8j4A9cGDLw== X-Received: by 10.80.158.169 with SMTP id a38mr71985766edf.72.1517681609743; Sat, 03 Feb 2018 10:13:29 -0800 (PST) Original-Received: from localhost (host-78-145-169-196.as13285.net. [78.145.169.196]) by smtp.gmail.com with ESMTPSA id g7sm3828443edf.76.2018.02.03.10.13.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 03 Feb 2018 10:13:28 -0800 (PST) In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:222472 Archived-At: Hi Noam, 2018ko otsailak 2an, Noam Postavsky-ek idatzi zuen: >=20 > In Emacs 26 and earlier the following is valid lisp code: >=20 > (setq =E2=80=99bar 42) > (setq foo =E2=80=99bar) I was surprised to learn that this is the case, in light of what is said in the Elisp reference about symbol names: =E2=80=9CA symbol name can contain any characters whatever. Most symbol names are written with letters, digits, and the punctuation characters =E2=80=98-+=3D*/=E2=80=99. = Such names require no special punctuation; the characters of the name suffice as long as the name does not look like a number. (If it does, write a =E2=80= =98\=E2=80=99 at the beginning of the name to force interpretation as a symbol.) The characters =E2=80=98_~!@$%^&:<>{}?=E2=80=99 are less often used but also r= equire no special punctuation. Any other characters may be included in a symbol's name by escaping them with a backslash.=E2=80=9D (info "(elisp) Symbol Typ= e") Would it be worth considering making the reader enforce this fully specification, as an alternative to your patch? That would solve this problem with curly quotes in symbol names (which also bit me at one point), as well as the potential problems with other confusable characters raised by Paul. (It might still be desirable to add a special user-friendly error message when the illegal characters are confusable with an ASCII single quote, as an additional user-friendliness measure.) Aaron PS if this approach is not taken, the manual should at least be changed to match the actual behavior of the reader.