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, 06 Jun 2015 11:11:25 -0700 Organization: UCLA Computer Science Department Message-ID: <557337CD.60706@cs.ucla.edu> References: <20150601104935.19764.qmail@mail.muc.de> <556C81C4.3010107@cs.ucla.edu> <20150601171723.GB16298@acm.fritz.box> <556CA97C.8070807@cs.ucla.edu> <20150602115600.GA3468@acm.fritz.box> <556DCE36.9070505@cs.ucla.edu> <20150602170724.GA2567@acm.fritz.box> <20150602204423.GA2619@acm.fritz.box> <55707236.6060605@cs.ucla.edu> <20150606155445.GE3418@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070401050907080804060004" X-Trace: ger.gmane.org 1433614369 3012 80.91.229.3 (6 Jun 2015 18:12:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jun 2015 18:12:49 +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 06 20:12:39 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 1Z1IaB-0004WH-Vu for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jun 2015 20:12:36 +0200 Original-Received: from localhost ([::1]:52246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1IaB-0006vc-AG for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Jun 2015 14:12:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1IZh-0006Fn-2s for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2015 14:12:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1IZd-0003jr-Tf for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2015 14:12:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1IZd-0003jn-R5 for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2015 14:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z1IZd-0005Bb-M8 for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2015 14:12:01 -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, 06 Jun 2015 18:12:01 +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.143361430519817 (code B ref 20707); Sat, 06 Jun 2015 18:12:01 +0000 Original-Received: (at 20707) by debbugs.gnu.org; 6 Jun 2015 18:11:45 +0000 Original-Received: from localhost ([127.0.0.1]:43431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1IZL-00059S-Cw for submit@debbugs.gnu.org; Sat, 06 Jun 2015 14:11:44 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43585) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z1IZI-00058R-MO for 20707@debbugs.gnu.org; Sat, 06 Jun 2015 14:11:41 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 018A21606C1; Sat, 6 Jun 2015 11:11:35 -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 11pFAug6ygyG; Sat, 6 Jun 2015 11:11:33 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B8BB41606D1; Sat, 6 Jun 2015 11:11:33 -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 GryafSqc_YwU; Sat, 6 Jun 2015 11:11:33 -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 8C23A1606C1; Sat, 6 Jun 2015 11:11:33 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150606155445.GE3418@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:103664 Archived-At: This is a multi-part message in MIME format. --------------070401050907080804060004 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Alan Mackenzie wrote: > , or even "Parsing `%qs': expected %s `%qs', got `%qs'.", where the q > means "make the surrounding quote marks display marks". I'd rather not go that route, as it's more complex to implement and to explain, and would mean that we'd have to figure out what happens when someone uses %q without surrounding grave accent, and so forth. Even the unquoted %q would be bad enough: WYSIWYH says quotation marks are best represented by using, well, quotation marks. > 8-bit environments may not be all that common any more, at least on a > desktop machine, but what about over comms links? I don't see why comms links are relevant. What matters is what can be displayed. In the old days somm comms links wouldn't transmit 8-bit data, only 7-bit, but I assume that's not what you're talking about as that didn't support even 8-bit charsets. > Linux consoles are not rare Well, that depends on one's definition of "rare" :-), but even assuming they're common, curved quotes work on Linux consoles, either by default (as on Fedora) or by configuration (needed on Arch). All we need to do is to set you up. > On the Linux console, there are a maximum of 256 glyphs which can be > displayed That's not a problem: we're only talking about two glyphs. and you undoubtedly have two to spare (what are you using? CP437? I'll bet you never use its U+263B BLACK SMILING FACE ...). > the two varieties of quotes are mapped > to the same glyphs in my consolefont. I assume this is because you're running bleeding-edge Emacs and have told it that you're in an 8-bit environment that can't display curved quotes. This is what commit 496bfe74990d6601d3584cb900643aa77d7b7a78 was about (Bug#20545). The idea is that ordinary users in obsolescent locales will just see straight apostrophes instead of curved quotes, which is good enough for them. But you're not an ordinary user: you're a developer, and would prefer to see the the various kinds of quotes when you're writing error messages and the like. So it'd be nice to get that to work for you. > But it will not work well on a console, even with the most recent Emacs. Sure it will. It works fine. I just tried it on my Linux console (Ubuntu 15.04). All you have to do is configure your fonts. This is not too much to ask of an Emacs developer. We should not have to contort Emacs source code merely to make it fit into the character set of a circa-1981 IBM PC. So how about trying a font that works? You're running Arch Linux, and an 8-year-old post in the Arch Linux forums says that the Debian Lat15-Terminus16 works and looks nice on Arch Linux. I just tried this font on Ubuntu 15.04 and it worked for me too, and displayed curved quotes well. Please give it a try. You can use the attached file (a copy of Ubuntu 15.04 /usr/share/consolefonts/Lat15-Terminus16.psf.gz), and check out its curved quotes. --------------070401050907080804060004 Content-Type: application/gzip; name="Lat15-Terminus16.psf.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Lat15-Terminus16.psf.gz" H4sIAC9QN1UCA3VX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