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 9ce1d38: Use curved quotes in core elisp diagnostics Date: Sat, 22 Aug 2015 16:45:46 -0700 Organization: UCLA Computer Science Department Message-ID: <55D909AA.90401@cs.ucla.edu> References: <20150816160149.9416.80132@vcs.savannah.gnu.org> <55D1043C.3030909@yandex.ru> <55D15899.2070105@cs.ucla.edu> <55D1C9CE.2060407@yandex.ru> <55D20EDF.5070906@cs.ucla.edu> <55D223CA.4080109@yandex.ru> <55D22A1F.8040508@cs.ucla.edu> <55D22CF4.9030608@yandex.ru> <55D2747D.10809@cs.ucla.edu> <55D317A9.6000805@yandex.ru> <55D42210.9070703@cs.ucla.edu> <55D48503.3020406@yandex.ru> <55D50159.2030104@cs.ucla.edu> <55D62B31.3010100@cs.ucla.edu> <55D8A3E9.3070704@yandex.ru> <55D8C3E8.2010707@cs.ucla.edu> <55D8E4F3.6060406@yandex.ru> <55D8FB22.4080503@cs.ucla.edu> <55D900EF.7090000@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 1440287175 18751 80.91.229.3 (22 Aug 2015 23:46:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2015 23:46:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 23 01:46:07 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 1ZTIUA-0000gI-Tk for ged-emacs-devel@m.gmane.org; Sun, 23 Aug 2015 01:46:07 +0200 Original-Received: from localhost ([::1]:48671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTIUA-0007tW-9I for ged-emacs-devel@m.gmane.org; Sat, 22 Aug 2015 19:46:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTITw-0007tA-1y for emacs-devel@gnu.org; Sat, 22 Aug 2015 19:45:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTITs-0000pB-QL for emacs-devel@gnu.org; Sat, 22 Aug 2015 19:45:51 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:54275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTITs-0000p5-Kk for emacs-devel@gnu.org; Sat, 22 Aug 2015 19:45:48 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 78D78160EF3; Sat, 22 Aug 2015 16:45:47 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id vIDYaQfeBLgK; Sat, 22 Aug 2015 16:45:46 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id BF54C160EF5; Sat, 22 Aug 2015 16:45:46 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ISe4zabU8ucK; Sat, 22 Aug 2015 16:45:46 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 9BD20160EF2; Sat, 22 Aug 2015 16:45:46 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: <55D900EF.7090000@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:189074 Archived-At: Dmitry Gutov wrote: > An ambiguity in `format' can cause an unexpected error due to a > program, say, being unable to open a file. Yes, although that's a longstanding problem: it's not something that the = recent=20 quoting-style changes have introduced, and it's not something that we rea= lly=20 need to address now. That being said, we could attack the problem somewhat by having %qs not o= nly=20 quote its output, but also insert backslashes in front of each troublesom= e=20 character (which should include the characters in the string "\n\\\"'=E2=80= =98=E2=80=99=E2=80=9C=E2=80=9D",=20 say). This would work only in output contexts where backslash escapes ma= ke=20 sense, but that's reasonably common and anyway the output would be unambi= guous,=20 which is better than what we have now. A possible downside of changing %q's behavior in this way is that it'll d= ouble=20 backslashes in file names, and maybe MS-Windows users wouldn't like that.= For=20 example, if NAME is the file name =E2=80=98C:\Documents and=20 Settings\Eggert\Example.png=E2=80=99, then: (error "Cannot find image file %qs" name) would output: Cannot find image file =E2=80=98C:\\Documents and Settings\\Eggert\\E= xample.png=E2=80=99 and the doubled backslashes could be a bit disconcerting.