From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#15138: revno: 114089 change causes cjk characters not shown correctly Date: Thu, 05 Sep 2013 22:49:55 +0900 Message-ID: <87hadzidj0.fsf@gnu.org> References: <2E6D0B96-1154-4081-BE8A-3267F1526D90@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378389078 21098 80.91.229.3 (5 Sep 2013 13:51:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2013 13:51:18 +0000 (UTC) Cc: 15138-done@debbugs.gnu.org, darren.hoo@gmail.com To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 05 15:51:16 2013 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 1VHZxs-0004rY-5l for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 15:51:16 +0200 Original-Received: from localhost ([::1]:59755 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHZxr-0006Mn-EB for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Sep 2013 09:51:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHZxo-0006Mi-6W for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 09:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHZxf-0001oO-TO for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 09:51:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHZxf-0001oK-QE for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 09:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VHZxe-0000VI-M3 for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2013 09:51:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenichi Handa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Sep 2013 13:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15138 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15138-done@debbugs.gnu.org id=D15138.13783890341894 (code D ref 15138); Thu, 05 Sep 2013 13:51:02 +0000 Original-Received: (at 15138-done) by debbugs.gnu.org; 5 Sep 2013 13:50:34 +0000 Original-Received: from localhost ([127.0.0.1]:41599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHZxB-0000UT-7S for submit@debbugs.gnu.org; Thu, 05 Sep 2013 09:50:33 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:50355 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VHZx7-0000UI-Oz for 15138-done@debbugs.gnu.org; Thu, 05 Sep 2013 09:50:30 -0400 Original-Received: from fl1-60-237-92-159.iba.mesh.ad.jp ([60.237.92.159]:55227 helo=shatin) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VHZx6-0008W0-CV; Thu, 05 Sep 2013 09:50:29 -0400 Original-Received: from handa by shatin with local (Exim 4.80) (envelope-from ) id 1VHZwZ-0001aW-HN; Thu, 05 Sep 2013 22:49:55 +0900 In-Reply-To: <7FEF1248-81A6-4E06-8F08-29A02CE72E00@swipnet.se> (message from Jan =?UTF-8?Q?Dj=C3=A4rv?= on Tue, 3 Sep 2013 17:18:21 +0200) 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:77993 Archived-At: In article <7FEF1248-81A6-4E06-8F08-29A02CE72E00@swipnet.se>, Jan Dj=C3=A4r= v writes: > Good, closing. I have another question about this change. /* Fonts often have characters in other scripts, like symbol, even if= they don't match script: symbol. So check if the character is present in the current face first. Only enable for NS for now, but should perhaps be general? */ Lisp_Object font_object; XSETFONT (font_object, face->font); if (font_has_char (f, font_object, c)) return face->id; With it, face->font may vary depending on the preceding character. So if you have these lines: abc=E2=80=A2 =E3=81=82=E3=81=84=E3=81=86=E2=80=A2 the two "=E2=80=A2"s will be displayed by different fonts. Isn't it better to try the font selected for ASCII as this: XSETFONT (font_object, face->ascii_face->font); --- Kenichi Handa handa@gnu.org