From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master c4151eb: Improve the optional translation of quotes Date: Thu, 25 Jun 2015 18:11:25 +0300 Message-ID: <837fqresbm.fsf@gnu.org> References: <20150619073901.5856.32718@vcs.savannah.gnu.org> <55870BD2.6040706@yandex.ru> <558716E9.30903@cs.ucla.edu> <55871721.5060709@yandex.ru> <55871883.7080600@cs.ucla.edu> <55871E96.2020506@yandex.ru> <558722C0.5040702@cs.ucla.edu> <55874E55.4020501@yandex.ru> <5587B029.5000503@cs.ucla.edu> <55882522.3030305@yandex.ru> <5588F071.7030501@cs.ucla.edu> <55893B2D.40506@yandex.ru> <558A3F12.3080005@cs.ucla.edu> <558BF993.2010105@yandex.ru> <558C0A90.1040107@cs.ucla.edu> <558C176E.4070305@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435245118 20999 80.91.229.3 (25 Jun 2015 15:11:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2015 15:11:58 +0000 (UTC) Cc: eggert@cs.ucla.edu, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 25 17:11:49 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Z88oe-0006Rf-N2 for ged-emacs-devel@m.gmane.org; Thu, 25 Jun 2015 17:11:48 +0200 Original-Received: from localhost ([::1]:56154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z88oe-0005qz-39 for ged-emacs-devel@m.gmane.org; Thu, 25 Jun 2015 11:11:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z88oU-0005l4-Vr for emacs-devel@gnu.org; Thu, 25 Jun 2015 11:11:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z88oQ-0000dW-V3 for emacs-devel@gnu.org; Thu, 25 Jun 2015 11:11:38 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:61285) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z88oQ-0000ch-No for emacs-devel@gnu.org; Thu, 25 Jun 2015 11:11:34 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NQI00H009K8MQ00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 25 Jun 2015 18:11:33 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQI00HJDA78OG10@a-mtaout20.012.net.il>; Thu, 25 Jun 2015 18:11:32 +0300 (IDT) In-reply-to: <558C176E.4070305@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187520 Archived-At: > From: Dmitry Gutov > Date: Thu, 25 Jun 2015 17:59:58 +0300 > > On 06/25/2015 05:05 PM, Paul Eggert wrote: > > > Also, it's not clear how the overall approach would work on limited > > displays that don't have alternate fonts and/or colors. Suppose, for > > example, that the user is running 'emacs --color=never' on a character > > terminal? > > I thought this was implemented somewhere in the display engine? If not, > it could be. I didn't track this discussion, so forgive me if what I say below makes no sense. With that caveat, since you (AFAIU) are talking about using the font-lock mechanism for producing effects other than color, whether the terminal supports colors should not bother you. That's because the actual expression of the faces that have color attributes happens on the lowest level of terminal-specific parts of the display engine, and the rest of display doesn't care -- it manipulates faces, not colors. > Or someone could tell me how to check whether curly quotes are > undisplayable in Lisp, and the rule will perform no substitutions, for > instance. I think you want char-displayable-p.