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: Sat, 13 Jun 2015 10:54:11 -0700 Organization: UCLA Computer Science Department Message-ID: <557C6E43.8010905@cs.ucla.edu> References: <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> <557A46F2.50201@cs.ucla.edu> <20150612112539.GA3220@acm.fritz.box> <557B6F41.5050308@cs.ucla.edu> <20150613115420.GA3353@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: 7bit X-Trace: ger.gmane.org 1434218132 24335 80.91.229.3 (13 Jun 2015 17:55:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2015 17:55:32 +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 Sat Jun 13 19:55:12 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 1Z3peC-00084R-4A for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jun 2015 19:55:12 +0200 Original-Received: from localhost ([::1]:56630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3peB-0005Lg-Er for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 Jun 2015 13:55:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3pe8-0005JY-4E for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 13:55:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3pe4-0002nG-4l for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 13:55:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3pe4-0002mR-0q for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 13:55:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z3pe3-0005Ou-6P for bug-gnu-emacs@gnu.org; Sat, 13 Jun 2015 13:55:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jun 2015 17:55:03 +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.143421806120683 (code B ref 20707); Sat, 13 Jun 2015 17:55:03 +0000 Original-Received: (at 20707) by debbugs.gnu.org; 13 Jun 2015 17:54:21 +0000 Original-Received: from localhost ([127.0.0.1]:52919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3pdN-0005NW-0C for submit@debbugs.gnu.org; Sat, 13 Jun 2015 13:54:21 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39327) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z3pdK-0005NH-LF for 20707@debbugs.gnu.org; Sat, 13 Jun 2015 13:54:19 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E0C7B160811; Sat, 13 Jun 2015 10:54:12 -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 dxh9QRZa5sL8; Sat, 13 Jun 2015 10:54:12 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 202B8160810; Sat, 13 Jun 2015 10:54:12 -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 Qljgkq8CVjsS; Sat, 13 Jun 2015 10:54:12 -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 F0073160809; Sat, 13 Jun 2015 10:54:11 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150613115420.GA3353@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:103905 Archived-At: Alan Mackenzie wrote: > I'd challenge you to argue that the > following glyph for 0x60 originated as left curly quote: The history doesn't matter that much. What's more important is how Emacs works now. Today's displays mostly show curved quotes as curved quotes, show apostrophe as a straight vertical quote, and show grave accent as a straight slanted accent, and Emacs doesn't look good on these displays. That's the bug that needs to be fixed. > By "data points" is meant those who use Emacs on the (Linux) console. I > repeat, the only such user who's expressed a view on your proposed change > is me. I use Emacs on the Linux console occasionally. It works adequately in the latest master. So we have at least two data points. > Curly quotes are not currently in use in (released) Emacs Yes they are, when reading the documentation. > What's the flag to turn it off called? Sorry, there's no flag. We couldn't just "turn it off", as doc strings will contain curved quotes and these need to be parsed regardless of user display preferences. I suppose there could be an option to transliterate them to straight quotes before insertion into the *Help* buffer, for users who prefer that. But this should be done regardless of whether the source code uses curved quotes. And it shouldn't be done if the source uses escaped characters. > what other strings other than doc strings might want this change? Mostly diagnostics. > I can't recall seeing any instance of Lisp or C code processing doc > strings, or `error' arguments in any way that would make a difference. > Can you cite a specific example? Sure, see the latest commit to the master: commit 8afef016e2bc413c7a4913554ea6ed2c55474de6. There's lots more code like that.