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#23425: master branch: `message' wrongly corrupts ' to curly quote. Date: Tue, 3 May 2016 20:03:30 +0000 Message-ID: <20160503200330.GC11330@acm.fritz.box> References: <7e599cf6-18c3-1633-33d5-e9f4eaa8fe6a@cs.ucla.edu> <20160502191031.GB2048@acm.fritz.box> <83a8k7kv87.fsf@gnu.org> <20160503162716.GB11330@acm.fritz.box> <831t5jkrn2.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1462305887 12863 80.91.229.3 (3 May 2016 20:04:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 20:04:47 +0000 (UTC) Cc: eggert@cs.ucla.edu, 23425@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 03 22:04:35 2016 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 1axgYb-0005ck-TK for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 22:04:34 +0200 Original-Received: from localhost ([::1]:43165 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axgYU-0002ID-O3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 May 2016 16:04:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axgYL-00023V-9M for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 16:04:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axgY9-0005Of-6I for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 16:04:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axgY9-0005NI-1l for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 16:04:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1axgY5-0007CL-KW for bug-gnu-emacs@gnu.org; Tue, 03 May 2016 16:04:01 -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, 03 May 2016 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23425 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23425-submit@debbugs.gnu.org id=B23425.146230581527623 (code B ref 23425); Tue, 03 May 2016 20:04:01 +0000 Original-Received: (at 23425) by debbugs.gnu.org; 3 May 2016 20:03:35 +0000 Original-Received: from localhost ([127.0.0.1]:35739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axgXf-0007BT-B6 for submit@debbugs.gnu.org; Tue, 03 May 2016 16:03:35 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:41302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axgXc-0007BK-TE for 23425@debbugs.gnu.org; Tue, 03 May 2016 16:03:33 -0400 Original-Received: (qmail 90002 invoked by uid 3782); 3 May 2016 20:03:31 -0000 Original-Received: from acm.muc.de (p548A45E2.dip0.t-ipconnect.de [84.138.69.226]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 03 May 2016 22:03:30 +0200 Original-Received: (qmail 23431 invoked by uid 1000); 3 May 2016 20:03:30 -0000 Content-Disposition: inline In-Reply-To: <831t5jkrn2.fsf@gnu.org> User-Agent: Mutt/1.5.24 (2015-08-30) 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.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:117684 Archived-At: Hello, Eli. On Tue, May 03, 2016 at 07:55:45PM +0300, Eli Zaretskii wrote: > > Date: Tue, 3 May 2016 16:27:16 +0000 > > Cc: eggert@cs.ucla.edu, 23425@debbugs.gnu.org > > From: Alan Mackenzie > > I suppose so. Have you got anything agains me putting that > > suggestion [ the trick of using `format' inside `message] into > > etc/NEWS, in the entry for `message'? > No, I have nothing against that. OK, I'll do that later. > > > Not sure what you mean: AFAICT, the definition is right there in the > > > text you cited. > > Only in the form of characters I can't distinguish on my terminal, and > > couldn't even if they were distinct due to my failing eyesight ;-). And > > not in the form I would need to be able to program with them, such as > > their ASCII/UTF-8 codes. > Well, a picture is worth about a thousand words. I very much doubt > one could explain that clearly enough, if we assume the characters are > not displayed correctly and that the user isn't already familiar with > the terminology. How do you "define" character by just talking about > them, without showing their glyphs?? This isn't simple. I think what's needed is a clear explanation of the conversion process, not merely the result of using it - I'm still a little confused over whether a left ASCII quote (`) might get converted into a right ASCII or curly quote. (A little later - yes it can happen) I don't think that is clearly documented anywhere. > > > > Why is there no mention of `text-quoting-style' on this page? > > > Because we don't want to advertise it too much. It is supposed to be > > > a kind of "fire escape", not something users must routinely do. If > > > that assumption is wrong, then having this prominently mentioned in > > > the manual will be the least of our troubles. > > And why is it something that users shouldn't routinely do? > Because the theory behind this change is that everyone will want that, > certainly after they get used to it a little. That seems a very strange attitude from an Emacs developer - that one developer's personal preferences should be imposed on all Emacs users without the possibility of disabling by configuration. It is quite clear from posts in emacs-devel and bug-gnu-emacs over the last year or so that NOT EVERYBODY wants these curly quote changes. Far from it. Just like not everybody wants light text on a dark background, or (thinking back to Emacs 21) not everybody wants fringes on their GUI screen. Users were complaining for years about the unconfigurable fringes, until Emacs 22 was released. > If that theory is wrong, we will have to change much more than just > document that variable or teach users to use it more. That theory _is_ wrong, certainly amongst Emacs developers. Even in this bug thread, two other people have expressed negative sentiments about this matter. > > Surely it should be a configuration variable. Some people, like me, > > don't like being lied to by a computer program. > You are not being lied to. Just think of ` and ' as yet another > format specifier character, not unlike %. They're not - they're literal characters. The quote which should have been output yesterday afternoon, but got corrupted, was certainly a literal quote. > > > I urge you not to do that. Because if you do, problems like this one > > > will slip unnoticed, instead of being fixed in the code. > > I'd like it to be fixed in the code. :-) > You mean, disable the conversion? Not going to happen before 25.1, > and unless there's a user outcry, not going to happen, period. No, I mean make this conversion optional and configurable, as in the patch in my last post. > That's why I think we should use the default, and find and fix any > leftovers like the one which started this discussion. This particular default just makes me too angry to get work done. I'm still using 24.5. After becoming tired out in the fight over curly quotes last summer/autumn, I just left that task to other people. I assumed that the matter of curly quotes had been sorted out satisfactorally. [ .... ] > > No, `grave' doesn't work. This changes curly quotes to ASCII quotes, i.e. > > it distorts the input and loses information. > ??? Are we talking about the same issue? > emacs -Q > M-: (setq text-quoting-style 'grave) RET > M-: (message "`this'") RET => `this' > What am I missing? That in that scenario, (message "`this'") ; with curly quotes gets converted to "`this'" ; with ASCII quotes. This is not wanted. [ .... ] > > > > Can we please fix this before Emacs 25.1 gets released? > > > What fix would you like to see? I'm not sure I understand. > > I want there to be an additional value `leave' for `text-quoting-style' > > which would suppress all substitution of quotes. > See above: I'm missing something here, because I don't understand why > is that needed. Backwards compatibility, perhaps? Another reason is the difficulty of discovering from the available documentation, which is not concise and coherent[*], precisely what the quote substitution does. At least on disabling the substitution, you know where you stand. [*] There is nowhere any text like "when `message' runs, it subtitutes ASCII and curly quotes as follow: ....". -- Alan Mackenzie (Nuremberg, Germany).