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 19:49:01 -0700 Organization: UCLA Computer Science Department Message-ID: <555BF61D.40202@cs.ucla.edu> References: <20150519220123.30678.22605@vcs.savannah.gnu.org> <555BB96F.3050700@yandex.ru> <555BC4BD.1030207@cs.ucla.edu> <555BE07E.8090209@yandex.ru> <555BEE11.3020300@cs.ucla.edu> <555BF326.1060504@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 1432090174 18780 80.91.229.3 (20 May 2015 02:49:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2015 02:49:34 +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 04:49:22 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 1Yuu4O-0004Ju-Ri for ged-emacs-devel@m.gmane.org; Wed, 20 May 2015 04:49:20 +0200 Original-Received: from localhost ([::1]:49636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yuu4N-0002Bf-Vb for ged-emacs-devel@m.gmane.org; Tue, 19 May 2015 22:49:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yuu4B-0002AY-Pw for emacs-devel@gnu.org; Tue, 19 May 2015 22:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yuu48-0004OL-LP for emacs-devel@gnu.org; Tue, 19 May 2015 22:49:07 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:35357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yuu48-0004OA-Fn for emacs-devel@gnu.org; Tue, 19 May 2015 22:49:04 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 0FAC2A6000A; Tue, 19 May 2015 19:49:03 -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 NbEQg-BXvwF7; Tue, 19 May 2015 19:49:02 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 340E8A60003; Tue, 19 May 2015 19:49:02 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <555BF326.1060504@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:186642 Archived-At: >> This is like `(let ((v ,EXP)) ,EXPS) except that `v' is a new gener= ated > If we're sure that quotes will be paired Although the quotes that we want to curl are paired, there are other stra= y grave=20 accents and apostrophes that we shouldn't curl. > the above example is simply missing a ' after the closing paren. Are you sure? The first grave accent looks like a quasiquote, so there=20 shouldn't be a closing apostrophe. Those commas are clues that it's a qu= asiquote. Here's my current draft regexp to catch the quotations we want to curl: `\\([^[:space:]'`=E2=80=98=E2=80=99][^'`=E2=80=98=E2=80=99]*\\)?' A bit tricky, but could be worse. Newlines are allowed, as some doc stri= ngs=20 break these quotes across line boundaries (e.g., info node references).