From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 9ffb6ce 5/5: Quoting fixes in lisp/international and lisp/leim Date: Tue, 01 Sep 2015 09:35:59 +0200 Message-ID: <8737yy617k.fsf@fencepost.gnu.org> References: <20150831061236.27796.57762@vcs.savannah.gnu.org> <55E3F434.2060507@yandex.ru> <55E4A160.4060309@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1441093014 12213 80.91.229.3 (1 Sep 2015 07:36:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2015 07:36:54 +0000 (UTC) Cc: emacs-devel@gnu.org, Stefan Monnier , Dmitry Gutov To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 09:36:53 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZWg7h-0001HV-8e for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2015 09:36:53 +0200 Original-Received: from localhost ([::1]:45327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWg7h-0002PF-8P for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2015 03:36:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWg7R-0002Kc-GP for emacs-devel@gnu.org; Tue, 01 Sep 2015 03:36:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWg7Q-0005pp-Kk for emacs-devel@gnu.org; Tue, 01 Sep 2015 03:36:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWg7O-0005my-Po; Tue, 01 Sep 2015 03:36:34 -0400 Original-Received: from localhost ([127.0.0.1]:54930 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZWg7O-0008Nr-67; Tue, 01 Sep 2015 03:36:34 -0400 Original-Received: by lola (Postfix, from userid 1000) id CBC70E30C4; Tue, 1 Sep 2015 09:35:59 +0200 (CEST) In-Reply-To: <55E4A160.4060309@cs.ucla.edu> (Paul Eggert's message of "Mon, 31 Aug 2015 11:48:00 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189371 Archived-At: Paul Eggert writes: > One alternative is to go with a system that normally has no > translation, where Emacs source-code docstrings and diagnostics use > curved quotes that merely stand for themselves, and where all curved > quotes are displayed/searched-for/yanked as ASCII approximations for > users who prefer the traditional style. This would remove the need > for format-message and/or substitute-command-keys doing any quote > translation. A downside is that source code docstrings and > diagnostics would need to be converted to use curved quotes. Well, it would save us from horribly wrong DOC strings like quote is a special form in =E2=80=98C source code=E2=80=99. (quote ARG) Return the argument, without evaluating it. =E2=80=98(quote x)=E2=80=99 yi= elds =E2=80=98x=E2=80=99. Warning: =E2=80=98quote=E2=80=99 does not construct its return value, but j= ust returns the value that was pre-constructed by the Lisp reader (see info node =E2=80=98(elisp)Printed Representation=E2=80=99). This means that =E2=80=99(a . b) is not identical to (cons =E2=80=99a =E2= =80=99b): the former does not cons. Quoting should be reserved for constants that will never be modified by side-effects, unless you like self-modifying code. See the common pitfall in info node =E2=80=98(elisp)Rearrangement=E2=80=99 = for an example of unexpected results when a quoted object is modified. [back] Sometimes a quote is just a quote. --=20 David Kastrup