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#20926: 25.0.50; Quotation marks always display as hard quotes Date: Thu, 02 Jul 2015 09:34:44 -0700 Organization: UCLA Computer Science Department Message-ID: <55956824.3000002@cs.ucla.edu> References: <5594CF60.5040703@cs.ucla.edu> <83fv561usi.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090702040000040402060908" X-Trace: ger.gmane.org 1435854925 27729 80.91.229.3 (2 Jul 2015 16:35:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jul 2015 16:35:25 +0000 (UTC) Cc: 20926@debbugs.gnu.org, bruce.connor.am@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 02 18:35:16 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 1ZAhSF-0004GD-6z for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 18:35:15 +0200 Original-Received: from localhost ([::1]:37764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAhSE-0006M6-I6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 12:35:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42735) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAhS8-0006IO-T0 for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 12:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZAhS4-0003w8-Gq for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 12:35:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZAhS4-0003u9-4V for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 12:35:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZAhS3-0007mg-64 for bug-gnu-emacs@gnu.org; Thu, 02 Jul 2015 12:35:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jul 2015 16:35:03 +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.143585489329901 (code B ref 20926); Thu, 02 Jul 2015 16:35:03 +0000 Original-Received: (at 20926) by debbugs.gnu.org; 2 Jul 2015 16:34:53 +0000 Original-Received: from localhost ([127.0.0.1]:37879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAhRt-0007mD-8c for submit@debbugs.gnu.org; Thu, 02 Jul 2015 12:34:53 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:34817) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAhRr-0007m0-9d for 20926@debbugs.gnu.org; Thu, 02 Jul 2015 12:34:52 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3916B1608D4; Thu, 2 Jul 2015 09:34:45 -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 t8W0B-wlTRQ3; Thu, 2 Jul 2015 09:34:44 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 694DA1608D8; Thu, 2 Jul 2015 09:34:44 -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 itKJ2a3fYtCT; Thu, 2 Jul 2015 09:34:44 -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 4322B1608D4; Thu, 2 Jul 2015 09:34:44 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <83fv561usi.fsf@gnu.org> 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:104628 Archived-At: This is a multi-part message in MIME format. --------------090702040000040402060908 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > messages and documentation displayed in batch mode might be illegible > on some text terminals. Thanks, I hadn't thought of that, and overoptimized. Easy enough to do the check even if -batch. I installed the attached patch. > How is the locale's codeset relevant here? The issue was encountered > in a GUI session, where that should be unimportant. Yes, but the bug was that Emacs hadn't initialized the GUI yet and so char-displayable-p acted as if in a tty session. --------------090702040000040402060908 Content-Type: text/x-diff; name="0001-batch-should-not-affect-display.patch" Content-Disposition: attachment; filename="0001-batch-should-not-affect-display.patch" Content-Transfer-Encoding: quoted-printable >From 28217db57c7f1853a4c98ed0a32c2051a2a37807 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 2 Jul 2015 09:29:51 -0700 Subject: [PATCH] =3D?UTF-8?q?-batch=3D20should=3D20not=3D20affect=3D20=3D= E2=3D80=3D98?=3D =3D?UTF-8?q?=3DE2=3D80=3D99=3D20->=3D20`'=3D20display?=3D MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * lisp/startup.el (command-line): Do the =E2=80=98=E2=80=99 -> `' check e= ven if -batch (Bug#20926). --- lisp/startup.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lisp/startup.el b/lisp/startup.el index 4f1e315..cfe2269 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -1018,12 +1018,11 @@ please check its value") (setq no-blinking-cursor t)) =20 ;; If curved quotes don't work, display ASCII approximations. - (unless noninteractive - (dolist (char-repl '((?=E2=80=98 . [?\`]) (?=E2=80=99 . [?\']) (?=E2= =80=9C . [?\"]) (?=E2=80=9D . [?\"]))) - (when (not (char-displayable-p (car char-repl))) - (or standard-display-table - (setq standard-display-table (make-display-table))) - (aset standard-display-table (car char-repl) (cdr char-repl))))) + (dolist (char-repl '((?=E2=80=98 . [?\`]) (?=E2=80=99 . [?\']) (?=E2=80= =9C . [?\"]) (?=E2=80=9D . [?\"]))) + (when (not (char-displayable-p (car char-repl))) + (or standard-display-table + (setq standard-display-table (make-display-table))) + (aset standard-display-table (car char-repl) (cdr char-repl)))) =20 ;; Re-evaluate predefined variables whose initial value depends on ;; the runtime context. --=20 2.1.0 --------------090702040000040402060908--