From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#20707: [PROPOSED PATCH] Use curved quoting in C-generated errors Date: Wed, 10 Jun 2015 12:42:36 -0700 Organization: UCLA Computer Science Department Message-ID: <5578932C.4090904@cs.ucla.edu> References: <20150606155445.GE3418@acm.fritz.box> <557337CD.60706@cs.ucla.edu> <20150606205023.GA3862@acm.fritz.box> <55738BA9.7050104@cs.ucla.edu> <20150608171804.GA3184@acm.fritz.box> <55768D82.3040509@cs.ucla.edu> <20150609133423.GA3735@acm.fritz.box> <5577516B.9020709@cs.ucla.edu> <20150609224616.GC3735@acm.fritz.box> <557779E9.3050409@cs.ucla.edu> <20150610133931.GA3632@acm.fritz.box> <557863CA.8060609@cs.ucla.edu> <55787657.8030108@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 1433965405 14987 80.91.229.3 (10 Jun 2015 19:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jun 2015 19:43:25 +0000 (UTC) Cc: 20707@debbugs.gnu.org To: Dmitry Gutov , Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 10 21:43:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Z2lu3-0000jq-16 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jun 2015 21:43:11 +0200 Original-Received: from localhost ([::1]:42074 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2lu2-0004pF-I3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jun 2015 15:43:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2ltz-0004ox-1g for bug-gnu-emacs@gnu.org; Wed, 10 Jun 2015 15:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2ltu-00071c-KM for bug-gnu-emacs@gnu.org; Wed, 10 Jun 2015 15:43:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2ltu-00071X-HD for bug-gnu-emacs@gnu.org; Wed, 10 Jun 2015 15:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z2ltu-0007ZK-6r for bug-gnu-emacs@gnu.org; Wed, 10 Jun 2015 15:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jun 2015 19:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20707 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20707-submit@debbugs.gnu.org id=B20707.143396536629046 (code B ref 20707); Wed, 10 Jun 2015 19:43:02 +0000 Original-Received: (at 20707) by debbugs.gnu.org; 10 Jun 2015 19:42:46 +0000 Original-Received: from localhost ([127.0.0.1]:47495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2ltd-0007YO-IJ for submit@debbugs.gnu.org; Wed, 10 Jun 2015 15:42:46 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:45744) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2lta-0007Y9-2f for 20707@debbugs.gnu.org; Wed, 10 Jun 2015 15:42:43 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id C5E31160743; Wed, 10 Jun 2015 12:42:40 -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 9TR-EtkuQ4jJ; Wed, 10 Jun 2015 12:42:40 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1FF17160747; Wed, 10 Jun 2015 12:42:40 -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 xzM2guLZ4BHk; Wed, 10 Jun 2015 12:42:40 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0663416072C; Wed, 10 Jun 2015 12:42:40 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <55787657.8030108@yandex.ru> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103800 Archived-At: On 06/10/2015 10:39 AM, Dmitry Gutov wrote: > One doesn't usually see WYSIWYG in program source files.=20 I suppose it depends on what one means by "WYSIWYG"; I was referring to=20 a primary use of character string literals, which is that they're parts=20 of programs that look like what will be displayed. That is, in=20 principle one could write sequences of character codes instead, but this: printf ((char const []) { 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0 }); is much simpler when written as this: printf ("Hello"); > I think it's okay (more or less) if you want to type a curly quote in=20 > a docstring if it has no secondary meaning. Less so if you want to use=20 > it to delineate Lisp symbols or code.=20 I don't see where that "less so" is coming from. In doc strings it's=20 clearer to use curved quotes to delimit English from Lisp, and to use=20 grave accent for its ordinary use in Lisp. This helps the reader=20 distinguish English text that talks about Lisp code from the Lisp code=20 itself. For example, this: ``VAL' matches if the object is `equal' to VAL is confusing compared to this: =E2=80=98`VAL=E2=80=99 matches if the object is =E2=80=98equal=E2=80=99 t= o VAL