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: Mon, 17 Aug 2015 09:42:07 -0700 Organization: UCLA Computer Science Department Message-ID: <55D20EDF.5070906@cs.ucla.edu> References: <20150816160149.9416.80132@vcs.savannah.gnu.org> <55D1043C.3030909@yandex.ru> <55D15899.2070105@cs.ucla.edu> <55D1C9CE.2060407@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 1439829776 720 80.91.229.3 (17 Aug 2015 16:42:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2015 16:42:56 +0000 (UTC) To: Dmitry Gutov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 17 18:42:47 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 1ZRNUk-0001B6-RJ for ged-emacs-devel@m.gmane.org; Mon, 17 Aug 2015 18:42:46 +0200 Original-Received: from localhost ([::1]:58975 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRNUk-00017M-5R for ged-emacs-devel@m.gmane.org; Mon, 17 Aug 2015 12:42:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRNUD-0000Gj-63 for emacs-devel@gnu.org; Mon, 17 Aug 2015 12:42:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRNU8-0001JJ-Tt for emacs-devel@gnu.org; Mon, 17 Aug 2015 12:42:13 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:36981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRNU8-0001J9-PJ for emacs-devel@gnu.org; Mon, 17 Aug 2015 12:42:08 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5FE571605AF; Mon, 17 Aug 2015 09:42:08 -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 LgDwiKH3zvck; Mon, 17 Aug 2015 09:42:07 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9C10C160D78; Mon, 17 Aug 2015 09:42:07 -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 XHx6KNHaDILb; Mon, 17 Aug 2015 09:42:07 -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 7D8051605AF; Mon, 17 Aug 2015 09:42:07 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: <55D1C9CE.2060407@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:188849 Archived-At: Dmitry Gutov wrote: > You could use something like uLSQM", employed in the C code. You mean, instead of this: (message "Buffer =E2=80=98%s=E2=80=99 is read only." buf) we do this: (message (concat "Buffer "uLSQM"%s"uRSQM" is read only.") buf) where uLSQM and uRSQM are global string constants? I did consider that, = but=20 rejected it as it would make Lisp code too hard to read and maintain. uL= SQM and=20 uRSQM are needed in C code due to C99's limitations, but at least there i= t is=20 reasonably rare (fewer than a hundred uses) and C is already pretty ugly = so we=20 can put up with it. If we did the above sort of thing to Lisp we'd need = to=20 uglify thousands of uses, which would not be a good thing. By the way I considered many other possibilities, and you're welcome to b= ring up=20 other alternatives you're interested in. Maybe we can come up with somet= hing=20 better. The point of this change is to fix a real problem, after all, no= t to=20 stir up trouble. > Enabling electric-quote-mode means *all* quotes will be translated to c= urvy ones in the source code one types from there on, automatically. No, just the grave accents in strings and comments, and any matching=20 apostrophes; this is a considerably lighter touch than what the above rem= ark=20 implies. Occasionally one needs to type C-q ` when one really needs a gr= ave=20 accent inside a string, but that's pretty rare unless one is hard-coding=20 grave-accent quoting which is something we should be moving away from now= adays=20 anyway.