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: Thu, 11 Jun 2015 19:41:54 -0700 Organization: UCLA Computer Science Department Message-ID: <557A46F2.50201@cs.ucla.edu> References: <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> <20150610191730.GB3632@acm.fritz.box> <557893B3.7090402@cs.ucla.edu> <20150611190640.GA2752@acm.fritz.box> 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 1434077005 27052 80.91.229.3 (12 Jun 2015 02:43:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jun 2015 02:43:25 +0000 (UTC) Cc: 20707@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 12 04:43:14 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 1Z3Ew5-0003Pw-B4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jun 2015 04:43:13 +0200 Original-Received: from localhost ([::1]:49292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Ew4-00025N-Ll for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jun 2015 22:43:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Ew0-000255-IZ for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 22:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3Evv-0006ew-Gn for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 22:43:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Evv-0006eq-Cm for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 22:43:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z3Evu-00009f-HB for bug-gnu-emacs@gnu.org; Thu, 11 Jun 2015 22: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: Fri, 12 Jun 2015 02: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.1434076924481 (code B ref 20707); Fri, 12 Jun 2015 02:43:02 +0000 Original-Received: (at 20707) by debbugs.gnu.org; 12 Jun 2015 02:42:04 +0000 Original-Received: from localhost ([127.0.0.1]:51172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3Eux-00007f-Oz for submit@debbugs.gnu.org; Thu, 11 Jun 2015 22:42:04 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59613) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3Euv-00007B-Bv for 20707@debbugs.gnu.org; Thu, 11 Jun 2015 22:42:02 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 72D88160779; Thu, 11 Jun 2015 19:41:55 -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 QLzJVr-yegdP; Thu, 11 Jun 2015 19:41:54 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 65E3216077C; Thu, 11 Jun 2015 19:41:54 -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 rbYGuEQ56q7n; Thu, 11 Jun 2015 19:41:54 -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 470F9160779; Thu, 11 Jun 2015 19:41:54 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150611190640.GA2752@acm.fritz.box> 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:103852 Archived-At: Alan Mackenzie wrote: > My setup couldn't display curly single quotes Sure it could. It displayed curved single quotes as curved single quotes= . Your=20 objection was that your setup also displayed grave accent and apostrophe = as=20 curved single quotes (a style you happen to prefer), and you wanted your = setup=20 to display *different-shaped curves* for curved single quotes. This will= not be=20 not a problem to the few ordinary Emacs users who happen to use a similar= =20 obsolescent environment; they'll merely see nicely curved single quotes a= nd move on. > none of them that I've > seen so far have distinct glyphs for the curly quotes. Again, distinct glyphs are not a requirement for ordinary Emacs users. T= hat=20 being said, for Emacs developers such as yourself, the Lat15-Terminus16 f= ont I=20 mentioned earlier has distinct glyphs for curved quotes, as does=20 Lat15-TerminusBold16. You can find them archived at=20 . There are many other choices in this area. > That easiness remains controversial. It's certainly easier to read text quoted =E2=80=98like this=E2=80=99 tha= n to read text quoted=20 \`like this\'. > To be useful, it would have to become the standard way of quoting > symbols. I doubt whether it'll be the standard. It's uglier and more complicated = than=20 the alternative. Its main advantage is that it's easier to type for user= s who=20 want to type only ASCII. > Where do you see any portability hassles? Code might work when running on a typical Emacs system, but might fail on= an=20 Emacs system configured --without-curved-quotes, because Emacs will gener= ate=20 different strings that will be treated differently. > What exactly do you mean by "display problems fixed"? On the rare systems that don't display curved quotes as quotes, Emacs sho= uld=20 display straight quotes as substitutes. That's good enough for these rar= e and=20 obsolescent systems. > I don't think it's TRT simply to curlify any quote typed within a strin= g Electric Quote mode doesn't do that. If you type an apostrophe, it norma= lly=20 leaves the apostrophe alone. And in the rare cases where one really want= s a=20 grave accent and not a left single quote, it's easy enough to type C-q `. > How about only curlifying when > there's a matched pair of quotes containing exactly a symbol, and > uncurlifying when that ceases to be the case? That wouldn't work well; for example, it'd mishandle the common case of "= `%s'".=20 Worse, it'd mean that Emacs couldn't curve the open quote until the use= r types=20 the corresponding closed quote. I experimented with several approaches a= long=20 the lines you're suggesting, and they all had action-at-a-distance proble= ms that=20 made for confusing UIs. It's much better if quotes are curved only when = near=20 the cursor, so users see them being curved.