From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel 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 13:40:10 +0200 Message-ID: <87lhcqqsf9.fsf@gmail.com> References: <20150831061236.27796.57762@vcs.savannah.gnu.org> <55E3F434.2060507@yandex.ru> <55E496DC.1030608@cs.ucla.edu> <877foas9jh.fsf@gmail.com> <87vbbu4c5w.fsf@fencepost.gnu.org> 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 1441107592 18718 80.91.229.3 (1 Sep 2015 11:39:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Sep 2015 11:39:52 +0000 (UTC) Cc: Paul Eggert , emacs-devel@gnu.org, Stefan Monnier , Dmitry Gutov To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 01 13:39:46 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 1ZWjuk-0006SP-04 for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2015 13:39:46 +0200 Original-Received: from localhost ([::1]:52917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWjuj-0001mT-Jk for ged-emacs-devel@m.gmane.org; Tue, 01 Sep 2015 07:39:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWjug-0001lo-TO for emacs-devel@gnu.org; Tue, 01 Sep 2015 07:39:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWjuc-0007aZ-Un for emacs-devel@gnu.org; Tue, 01 Sep 2015 07:39:42 -0400 Original-Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:33636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWjuc-0007aN-P0; Tue, 01 Sep 2015 07:39:38 -0400 Original-Received: by wicmc4 with SMTP id mc4so29793376wic.0; Tue, 01 Sep 2015 04:39:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=CZpRPlTEiejEZpPZgaJhWyLRqzrUcivOodq9VJ+zZM0=; b=qxurhbm7+nHkT10WOKde9f7p1aw9L8dufqKahK7gUJOyyKMorVv/8/syCzvi3f7ZA1 v4SqejoNkphNiqG/MvSE2l+hM7jcd1BLDr7HpaIMTBkXuLNYsKlf9QaXdabaRCiZyPIL gqhSkmvgks9cY3yeXe+wtXOuh+qfVhZfe6Ouo/L7/8VPYMTeT0Bxw6no5hvsTCRvTCfw dfNrr79146TidVMH6c0pZlDH0EWrGTLf89w+Bthrt+5Sq+gg6gDFbZQBWeImsKphSIHN cZrDKyMzrCjbdgCrKYyNcqXimXm0ELvPm1SbmfJDXm9D+qakX3xp1+LTsWXRpW/kLnqu nWgA== X-Received: by 10.180.106.233 with SMTP id gx9mr2975789wib.32.1441107578031; Tue, 01 Sep 2015 04:39:38 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id cw8sm26760653wjb.49.2015.09.01.04.39.37 (version=TLS1_2 cipher=AES128-SHA256 bits=128/128); Tue, 01 Sep 2015 04:39:37 -0700 (PDT) In-Reply-To: <87vbbu4c5w.fsf@fencepost.gnu.org> (David Kastrup's message of "Tue, 01 Sep 2015 13:22:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::236 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:189379 Archived-At: David Kastrup writes: > Has anything like that been proposed? I repeat the documentation help > from the `quote' macro: > > 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 yields =E2=80=98x=E2=80=99. > Warning: =E2=80=98quote=E2=80=99 does not construct its return value,= but just 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 cod= e. > 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. > > It contains both quote marks as well as Lisp quote characters. > Executing the given examples yields "void variable =E2=80=99"&"Trailing g= arbage > following expression" and "void variable =E2=80=99a" respectively. > > Info does not have this problem because Texinfo markup marks code > passages separately, and for those, ` and ' are not substituted. > > So this just can't work in DOC strings until we have decided on separate > markup for either ` and ' or code in general. This could be solved in a variety of ways while keeping to ASCII. For instance, either "''" or "\'" could translate into "'" unconditionally. I would prefer the way Markdown does it: `(cons 'a 'b)` translates into (cons 'a 'b). I've been using a similar style for org-mode, only with different escape chars: - =3D(cons 'a 'b)=3D to denote code - ~C-a C-k~ to denote keyboard sequences