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: Tue, 09 Jun 2015 13:49:47 -0700 Organization: UCLA Computer Science Department Message-ID: <5577516B.9020709@cs.ucla.edu> References: <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> <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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000706030709020603010108" X-Trace: ger.gmane.org 1433883022 5548 80.91.229.3 (9 Jun 2015 20:50:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jun 2015 20:50:22 +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 Tue Jun 09 22:50:11 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 1Z2QTL-0003jL-9P for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jun 2015 22:50:11 +0200 Original-Received: from localhost ([::1]:36864 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2QTK-0005M3-M2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jun 2015 16:50:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2QTH-0005Jv-VC for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 16:50:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2QTE-0006s8-N5 for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 16:50:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2QTE-0006re-KC for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 16:50:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z2QTD-0008AY-OL for bug-gnu-emacs@gnu.org; Tue, 09 Jun 2015 16:50:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jun 2015 20:50: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.143388299331383 (code B ref 20707); Tue, 09 Jun 2015 20:50:03 +0000 Original-Received: (at 20707) by debbugs.gnu.org; 9 Jun 2015 20:49:53 +0000 Original-Received: from localhost ([127.0.0.1]:46472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2QT2-0008A6-8C for submit@debbugs.gnu.org; Tue, 09 Jun 2015 16:49:52 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43259) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z2QT0-00089x-2j for 20707@debbugs.gnu.org; Tue, 09 Jun 2015 16:49:51 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DB915160721; Tue, 9 Jun 2015 13:49:48 -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 Ev6e6nXyXwwG; Tue, 9 Jun 2015 13:49:48 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0D208160720; Tue, 9 Jun 2015 13:49:48 -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 n6FYPMUorQ3X; Tue, 9 Jun 2015 13:49:47 -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 E05E716069D; Tue, 9 Jun 2015 13:49:47 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <20150609133423.GA3735@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:103778 Archived-At: This is a multi-part message in MIME format. --------------000706030709020603010108 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit >>> we don't control Info output > >> Actually, we do control it, and can easily tell makeinfo to output straight >> ASCII quotes. > > Can we? I'm sure we can, though I'm too lazy to look it up right now. And we can transliterate the .info files ourselves, though that would be just as silly. > The abstract principle at work here is that ASCII quotes are > @dfn{working} characters, whereas the curly quotes are merely > @dfn{display} characters. Curved single quotes are also "working" characters, both in Emacs (master branch) and in Texinfo (latest stable version). It's true that not every keyboard can generate them in every Emacs context with just a single keypress, but that's also true for many ASCII characters. In practice the data entry problem is not that big a deal. > I meant change the appearance of your 0x27 apostrophe It's not my apostrophe. It's the appearance of U+0027 APOSTROPHE in most environments nowadays. You may not like its appearance, and I may not like it either, but it's a waste of our time to reargue this now. The appearance has been common practice for many years, and Emacs should work well out of the box in common and standard environments. > Yes, the single curly quotes are "hard linked" to the ASCII single > quotes in the font. That isn't acceptable for me - they should have > distinct glyphs if they're going to be there at all. That's easy enough. Just take lat1-16.psfu and run this shell script: (psfgettable lat1-16.psfu echo '0x0c3 U+2018' echo '0x0c9 U+2019' echo '0x0d3 U+201C' echo '0x0d9 U+201D') | psfaddtable lat1-16.psfu - lat1cq-16.psfu gzip -9n lat1cq-16.psfu I'll attach the resulting font file, so you can save it and run 'setfont' on it. This font provides easy-to-distinguish glyphs for curved quotes (both single and double), and it retains the appearance of all ASCII characters in the font you've expressed a preference for. Most users won't need this sort of thing of course -- I'm just trying to help create a font that meets your specific needs. > So, it's going to be a pain in the posterior for most, if not all, users > of Emacs on terminals, No, it works fine for users of Emacs on terminals in most environments (gnome-terminal, xterm, etc.). It works fine even on most Linux consoles, where curved single quotes display as curved single quotes out of the box. Ordinary users shouldn't have to fiddle with font files; things just work. --------------000706030709020603010108 Content-Type: application/gzip; name="lat1cq-16.psfu.gz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="lat1cq-16.psfu.gz" H4sIAAAAAAACA3VWa3AcRxFe/lz5x5YQf1JX4LKFMWDex0ssYVHAhFd4xDzCI7wOYxYDiywC KAcs67WtXM52Qhz7zraSGOTYcvxKnMSWbfkRq3bKV/xQCf+6uioJ4Zof8h9X5CqqVPfjaj96 9jmzsvs0uvume3p6pnu6+7GJh6oaU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