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: Wed, 13 May 2015 19:54:30 +0300 Message-ID: <83oaloju49.fsf@gnu.org> References: <554FEFFE.7000303@cs.ucla.edu> <83k2wfma51.fsf@gnu.org> <555301BD.1040503@cs.ucla.edu> Reply-To: Eli Zaretskii 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 1431536123 19602 80.91.229.3 (13 May 2015 16:55:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 May 2015 16:55:23 +0000 (UTC) Cc: 20545@debbugs.gnu.org, eggert@cs.ucla.edu To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 13 18:55: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 1YsZw8-0005hj-9o for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 May 2015 18:55:12 +0200 Original-Received: from localhost ([::1]:50221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsZw7-0002Qk-L3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 May 2015 12:55:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsZw4-0002PZ-9n for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 12:55:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsZw0-0004A1-8I for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 12:55:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsZw0-00049A-5y for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 12:55:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YsZvz-0006At-EC for bug-gnu-emacs@gnu.org; Wed, 13 May 2015 12:55:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 May 2015 16:55:03 +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.143153609823720 (code B ref 20545); Wed, 13 May 2015 16:55:03 +0000 Original-Received: (at 20545) by debbugs.gnu.org; 13 May 2015 16:54:58 +0000 Original-Received: from localhost ([127.0.0.1]:44002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsZvt-0006AW-G1 for submit@debbugs.gnu.org; Wed, 13 May 2015 12:54:57 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:64064) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsZvr-0006AI-9v for 20545@debbugs.gnu.org; Wed, 13 May 2015 12:54:56 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NOA00C00SAGSU00@a-mtaout22.012.net.il> for 20545@debbugs.gnu.org; Wed, 13 May 2015 19:54:35 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NOA00CS8SAZOQ20@a-mtaout22.012.net.il>; Wed, 13 May 2015 19:54:35 +0300 (IDT) In-reply-to: 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:102749 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii , 20545@debbugs.gnu.org > Date: Wed, 13 May 2015 09:10:07 -0400 > > > I just now configured a terminal to refuse to display curved quotes, and > > when I used it Emacs displayed "‘like this’" as "\u2018like this\u2019" with > > underscores below the "\u2018" and the "\u2019". > > Hmm... is it really Emacs that displayed it like this? Or is it the > terminal which did it? Emacs. That's how we display "glyphless" characters on a TTY. > If it's Emacs, then I wonder how it figured it needed to do that, By checking whether the character belongs to one of the charsets supported by the terminal. We call char_charset with the list of charsets supported by the terminal frame; that charset list is set by set-terminal-coding-system-internal. See the end of term.c:produce_glyphs. > and if it's the terminal, then I wonder how Emacs could tell the > terminal to... > > > ... display it as "`like this'" with underscores under the "`" and the "'", > > if you think that'd be a win. We could discover this in advance (e.g., using char-displayable-p) and use a display table, for example.