From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#20707: [PROPOSED PATCH] Use curved quoting in C-generated errors Date: Tue, 2 Jun 2015 11:56:01 +0000 Message-ID: <20150602115600.GA3468@acm.fritz.box> References: <20150601104935.19764.qmail@mail.muc.de> <556C81C4.3010107@cs.ucla.edu> <20150601171723.GB16298@acm.fritz.box> <556CA97C.8070807@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1433246194 24032 80.91.229.3 (2 Jun 2015 11:56:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Jun 2015 11:56:34 +0000 (UTC) Cc: 20707@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 02 13:56:23 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 1Yzknm-00030X-7G for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 13:56:14 +0200 Original-Received: from localhost ([::1]:57839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzknl-0002RU-IL for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Jun 2015 07:56:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzkng-0002RF-Km for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 07:56:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yzknb-0008To-Gr for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 07:56:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzkna-0008Tg-Ua for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 07:56:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yzkna-0005aC-EY for bug-gnu-emacs@gnu.org; Tue, 02 Jun 2015 07:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Jun 2015 11:56: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.143324614121429 (code B ref 20707); Tue, 02 Jun 2015 11:56:02 +0000 Original-Received: (at 20707) by debbugs.gnu.org; 2 Jun 2015 11:55:41 +0000 Original-Received: from localhost ([127.0.0.1]:36934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzknE-0005ZY-1e for submit@debbugs.gnu.org; Tue, 02 Jun 2015 07:55:40 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:13573 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YzknA-0005ZO-MF for 20707@debbugs.gnu.org; Tue, 02 Jun 2015 07:55:38 -0400 Original-Received: (qmail 11461 invoked by uid 3782); 2 Jun 2015 11:55:35 -0000 Original-Received: from acm.muc.de (p579E9755.dip0.t-ipconnect.de [87.158.151.85]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 02 Jun 2015 13:55:32 +0200 Original-Received: (qmail 3818 invoked by uid 1000); 2 Jun 2015 11:56:01 -0000 Content-Disposition: inline In-Reply-To: <556CA97C.8070807@cs.ucla.edu> User-Agent: Mutt/1.5.23 (2014-03-12) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de 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:103472 Archived-At: Hello again, Paul. On Mon, Jun 01, 2015 at 11:50:36AM -0700, Paul Eggert wrote: > On 06/01/2015 10:17 AM, Alan Mackenzie wrote: > > how do you type that left curly quote. > In the new Electric Quote minor mode you can type just ` for the typical > case. Outside Electric Quote, you can type C-x 8 ` (or A-` if your Alt > key is working). Except for A-` this all should work on any keyboard. > You don't need to memorize a 4 digit hex value (I can never remember it > myself). Yes, that's fine. It's only marginally more difficult to type this within Emacs than for other self-inserting characters, though this difference prevents these curly-quotes from being first class characters. What I really meant with my question is how do you type curly characters when outwith Emacs? Say, inside of less, or at a bash shell prompt, or in any of numerous other tools one might wish to use? The only answer I can conceive of involves the enhancing of keyboard layouts. That's several hours of work. > > However, searching for the ASCII back tick (correctly) fails to find > > it. This is disconcerting. > It may be disconcerting at first, but it's easy to get used to and it > has advantages, e.g., it provides finer-grained control over searching. > Where I want to find a left single quote of either style, I can do a > regexp search for "[`‘]" but in interactive usage this is rare, at least > for me. But it's yet another trivial annoyance that one has to heep onto all the other y-a-t-as we have to cope with every day. > > I use the Linux virtual terminal: $TERM = linux consolefont="lat1-16" > > It doesn't handle UTF-8, because I never put in the effort to make it > > do so. > According to it > should work if you have sys-apps/baselayout > 1.11.9 or > higher installed, have unicode="yes" in /etc/rc.conf, and specify e.g. > keymap="uk" in /etc/conf.d/keymaps. The console font lat9w-16 seems to > be reasonably popular, so you might try that. UTF-8 works out of the box > in Ubuntu and Fedora on the system console; I don't use Gentoo but it > shouldn't be a lot of trouble to get it to work there too. . I've had a look at these instructions. There's a lot of glib handwaving on them, like "Do and read the comments". There's not a recipe on that page, for the simple reason that the process is too complicated. It says nothing about, for example, what consoletranslation or unicodemap to select, whatever these things might be. It gives a font which "seems to be reasonably popular", without saying anything about it: which characters it displays, for example. I'm not familiar with font manipulating software; I'd have to find some. Yes, all these things are doable - I've done them before, and it took several days (I kept notes). Maybe it would only take several hours this time. But I come back to the point. Why start using these curly characters at all? I put it to you you're fixing what isn't broken. One of Emacs's strong points has always been its working in pretty much any environment. You're going to slightly improve what these things look like in some display environments at the cost of slight inconvenience all round. What we currently have works, works well, and has done for decades. -- Alan Mackenzie (Nuremberg, Germany).