From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20926: 25.0.50; Quotation marks always display as hard quotes Date: Thu, 02 Jul 2015 17:46:53 +0300 Message-ID: <83fv561usi.fsf@gnu.org> References: <5594CF60.5040703@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435848441 13550 80.91.229.3 (2 Jul 2015 14:47:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 14:47:21 +0000 (UTC) Cc: 20926@debbugs.gnu.org, bruce.connor.am@gmail.com To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 02 16:47:10 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 1ZAfle-00084D-5c for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 16:47:10 +0200 Original-Received: from localhost ([::1]:37049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAfld-0005IJ-LX for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 10:47:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAfla-0005IE-Jk for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 10:47:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAflX-00066S-5A for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 10:47:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAflX-00066I-2O for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 10:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZAflW-000585-Mk for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 10:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jul 2015 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20926 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20926-submit@debbugs.gnu.org id=B20926.143584841419696 (code B ref 20926); Thu, 02 Jul 2015 14:47:02 +0000 Original-Received: (at 20926) by debbugs.gnu.org; 2 Jul 2015 14:46:54 +0000 Original-Received: from localhost ([127.0.0.1]:37756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAflO-00057b-AA for submit@debbugs.gnu.org; Thu, 02 Jul 2015 10:46:54 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49846) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAflL-00057I-BZ for 20926@debbugs.gnu.org; Thu, 02 Jul 2015 10:46:52 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NQV00F007JU2O00@a-mtaout20.012.net.il> for 20926@debbugs.gnu.org; Thu, 02 Jul 2015 17:46:44 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQV00E057PURCC0@a-mtaout20.012.net.il>; Thu, 02 Jul 2015 17:46:44 +0300 (IDT) In-reply-to: <5594CF60.5040703@cs.ucla.edu> X-012-Sender: halo1@inter.net.il 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:104613 Archived-At: > Date: Wed, 01 Jul 2015 22:42:56 -0700 > From: Paul Eggert > CC: Eli Zaretskii , 20926@debbugs.gnu.org > > I reproduced the originally-reported bug and installed a patch as master commit > bb35a21c0e8a4b82ac04fa26a53f6ca394afbb24. Thanks. But what will that change do to "emacs -batch", where you earlier arranged for use of the display table? AFAIU, the new code will not set up the display table in batch mode, is that correct? If so, messages and documentation displayed in batch mode might be illegible on some text terminals. > I'm not quite following the "hole in our machinery" a.k.a. "bug within the bug" > issue. Perhaps a separate bug report should be filed for the other bug? No, it's the same issue. The problem is that, although both char-displayable-p and describe-char-padded-string (called by "C-u C-x =" to display a character without risking its composition with the neighboring ones) call the same primitive to find out whether the character can be displayed, the latter does that dynamically at run time, whereas the code which runs during startup and determines whether to set up the display table does that only once. So, for example, if the user changes her font configuration without restarting the session, and the quote characters change their display-ability, "C-u C-x =" will pick that up, but the display table will not be recomputed. That's the "hole" I alluded to. We need somehow to make sure that whenever fonts are changed or the encoding of a TTY frame changes, the display table is recomputed accordingly. > Anyway, I think the original bug is fixed now; please give it a try. > > By the way, after giving the fix a try I suggest changing your locale from > 'en_GB' to 'en_GB.utf8', most likely by setting the LC_ALL or LANG environment > variables. I don't know why utf8 is not the default encoding, but these days > it's probably what you want. How is the locale's codeset relevant here? The issue was encountered in a GUI session, where that should be unimportant. Only the fonts that are available should be important.