From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 9d35bb8: Fix minor quoting problems in doc strings Date: Tue, 19 May 2015 16:18:21 -0700 Organization: UCLA Computer Science Department Message-ID: <555BC4BD.1030207@cs.ucla.edu> References: <20150519220123.30678.22605@vcs.savannah.gnu.org> <555BB96F.3050700@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1432077526 29882 80.91.229.3 (19 May 2015 23:18:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2015 23:18:46 +0000 (UTC) To: Dmitry Gutov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 20 01:18:38 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 1YuqmQ-0006N0-CD for ged-emacs-devel@m.gmane.org; Wed, 20 May 2015 01:18:34 +0200 Original-Received: from localhost ([::1]:49292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuqmP-0004a8-FT for ged-emacs-devel@m.gmane.org; Tue, 19 May 2015 19:18:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuqmL-0004Zp-RB for emacs-devel@gnu.org; Tue, 19 May 2015 19:18:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YuqmG-0003sA-Rv for emacs-devel@gnu.org; Tue, 19 May 2015 19:18:29 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:56388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YuqmG-0003rq-N3 for emacs-devel@gnu.org; Tue, 19 May 2015 19:18:24 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id AAE28A6000B; Tue, 19 May 2015 16:18:22 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xqm3m-5hb1+8; Tue, 19 May 2015 16:18:22 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 40E38A6000A; Tue, 19 May 2015 16:18:22 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <555BB96F.3050700@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 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:186636 Archived-At: On 05/19/2015 03:30 PM, Dmitry Gutov wrote: > > FWIW, these bits don't look quoting-method-agnostic to me. > The problem they're trying to address is that one can't reasonably=20 expect a regular expression to handle cases where grave accent or=20 apostrophe is itself being quoted `like this'. The simplest way out I=20 could think of, for the few doc strings where this comes up, is to use a=20 different quoting regime to quote the grave accent and/or apostrophe. =20 (One can imagine more complicated schemes of course, but they seemed=20 overkill.) In this situation the patch preferred curved double quotes=20 where the original used `` and '', and curved single quotes otherwise. >> - "Whether to show ``[N]'' for the Nth item up to 10. >> + "Whether to show =E2=80=9C[N]=E2=80=9D for the Nth item up to 10. > > The curly double quotes raise additional questions: would they be used=20 > everywhere instead of the escaped straight double-quotes (present in=20 > other places in your patch)? I'm not proposing that, no. > Do they have any special meaning, like the single quotes? No, they're just replacements for `` and '', which also don't have any=20 special meaning. Another possibility, which would also be fine and would be simpler,=20 would be to replace all curved double quotes in doc strings with=20 straight double-quotes. I could easily do that if you prefer; it's no=20 big deal either way.