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: Pixel-based display functions Date: Fri, 30 Jan 2015 13:56:21 +0200 Message-ID: <83oapglbx6.fsf@gnu.org> References: <83egricpvg.fsf@gnu.org> <87zj97vic8.fsf@building.gnus.org> <83wq4argjp.fsf@gnu.org> <87iofui8vo.fsf@building.gnus.org> <838ugqqczp.fsf@gnu.org> <877fw9dndz.fsf@building.gnus.org> <83a914ozsh.fsf@gnu.org> <874mrb1t62.fsf_-_@building.gnus.org> <87vbjrl49k.fsf@violet.siamics.net> <8361bqogah.fsf@gnu.org> <87k306pfi9.fsf@building.gnus.org> <87egqekrd7.fsf@building.gnus.org> <877fw53eat.fsf@building.gnus.org> <877fw4zsdv.fsf@building.gnus.org> <831tmcn4k4.fsf@gnu.org> <87386szq1w.fsf@building.gnus.org> <83wq44ljm9.fsf@gnu.org> <87vbjowlqv.fsf@building.gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=shift_jis Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1422618997 8547 80.91.229.3 (30 Jan 2015 11:56:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 11:56:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 12:56:37 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 1YHABg-0002ux-Gk for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 12:56:36 +0100 Original-Received: from localhost ([::1]:36266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHABf-0005I2-TY for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 06:56:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHABZ-0005Hp-OH for emacs-devel@gnu.org; Fri, 30 Jan 2015 06:56:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHABV-0005eQ-Nn for emacs-devel@gnu.org; Fri, 30 Jan 2015 06:56:29 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:37135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHABV-0005eC-FT for emacs-devel@gnu.org; Fri, 30 Jan 2015 06:56:25 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NIZ00C00NO6LX00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 30 Jan 2015 13:56:24 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIZ00C23NTZLP10@a-mtaout20.012.net.il>; Fri, 30 Jan 2015 13:56:24 +0200 (IST) In-reply-to: <87vbjowlqv.fsf@building.gnus.org> 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:182046 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Fri, 30 Jan 2015 22:28:40 +1100 >=20 > Eli Zaretskii writes: >=20 > >> The face doesn't say what font is going to be used. If I put = =93=FA=96{=8C=EA > >> here, the entire preceding line has the same face, but two diffe= rent > >> fonts. > > > > Then check the 'charset' text property as well. >=20 > (get-text-property (point) 'charset) > =3D> nil >=20 > on that entire line. Not here, it isn't: (get-text-property (point) 'charset) =3D> japanese-jisx0208 on the Kanji characters, and (get-text-property (point) 'charset) =3D> nil on ASCII. Maybe it depends on how your MUA decodes non-ASCII text. (I use Rmail, as you know.) But I know that the 'face' text property is not enough. I just suggest that you use it for now to see if you get enough of speedup i= n your code. We can later find a way of detecting character sets, and providing new primitives for that, if needed. (In the display engine= , there's a thing called the "face ID" that is computed as part of displaying text, which takes the characters into consideration, which is why I suggested 'face' in the first place. I will try to see how to do the same in Lisp.)