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#20545: New minor mode Electric Punct Date: Sun, 17 May 2015 17:33:40 +0300 Message-ID: <83k2w7ff3v.fsf@gnu.org> References: <554FEFFE.7000303@cs.ucla.edu> <83k2wfma51.fsf@gnu.org> <555301BD.1040503@cs.ucla.edu> <83r3qkjuve.fsf@gnu.org> <5553822C.3000709@cs.ucla.edu> <83iobwjt3s.fsf@gnu.org> <55544199.3040704@cs.ucla.edu> <5557B4A7.9070604@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1431873264 28670 80.91.229.3 (17 May 2015 14:34:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 May 2015 14:34:24 +0000 (UTC) Cc: 20545@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 17 16:34:12 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 1Ytzdr-0008Oj-Bv for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 May 2015 16:34:11 +0200 Original-Received: from localhost ([::1]:37659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytzdq-00016c-CV for geb-bug-gnu-emacs@m.gmane.org; Sun, 17 May 2015 10:34:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytzdm-00016X-L5 for bug-gnu-emacs@gnu.org; Sun, 17 May 2015 10:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ytzdj-00007Q-C3 for bug-gnu-emacs@gnu.org; Sun, 17 May 2015 10:34:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ytzdj-00007E-8r for bug-gnu-emacs@gnu.org; Sun, 17 May 2015 10:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ytzdi-0000z1-Qy for bug-gnu-emacs@gnu.org; Sun, 17 May 2015 10:34: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: Sun, 17 May 2015 14:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20545 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 20545-submit@debbugs.gnu.org id=B20545.14318732413772 (code B ref 20545); Sun, 17 May 2015 14:34:02 +0000 Original-Received: (at 20545) by debbugs.gnu.org; 17 May 2015 14:34:01 +0000 Original-Received: from localhost ([127.0.0.1]:48271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ytzdf-0000yl-Rx for submit@debbugs.gnu.org; Sun, 17 May 2015 10:34:00 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:46975) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ytzdd-0000yW-2w for 20545@debbugs.gnu.org; Sun, 17 May 2015 10:33:57 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NOI00B000ACAY00@a-mtaout23.012.net.il> for 20545@debbugs.gnu.org; Sun, 17 May 2015 17:33:50 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOI00BNA0GB8K40@a-mtaout23.012.net.il>; Sun, 17 May 2015 17:33:49 +0300 (IDT) In-reply-to: <5557B4A7.9070604@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:102902 Archived-At: > Date: Sat, 16 May 2015 14:20:39 -0700 > From: Paul Eggert > CC: 20545@debbugs.gnu.org > > On further thought, the code affects global settings so it should be done only if FRAME is nil. Also, it should treat double-quotes like single-quotes, and the ASCII approximations should use straight quotes. This code is separable from Bug#20545, and is also separable from the issue of how to quote in doc strings, as the code is useful whenever text with English quotes appears on an obsolescent display lacking them. So I installed the attached patch. Yes, this global effect is not a Good Thing. It means that a buffer with these characters that is displayed on a TTY frame and on a GUI frame will use the substitutes on both. Btw, is set-locale-environment called when a new frame is created? If not, then this is not a proper place to install the display table, as it won't DTRT when a new TTY frame is created in a running Emacs session, and that frame displays on a terminal that doesn't support these characters. I think it would be better to install this as a window-specific display table, using set-window-display-table, as part of setting up the window showing the *Help* buffer. WDYT?