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#12364: 24.2.50; wrong overhang display for gstring compositions Date: Thu, 06 Sep 2012 11:18:23 +0300 Message-ID: <83k3w7d0og.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1346919553 8070 80.91.229.3 (6 Sep 2012 08:19:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2012 08:19:13 +0000 (UTC) Cc: 12364@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 10:19:15 2012 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 1T9XIt-0005ZH-65 for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 10:19:11 +0200 Original-Received: from localhost ([::1]:38628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9XIp-00004u-Ix for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 04:19:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9XIh-0008VH-Sz for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 04:19:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9XIZ-0002l6-KA for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 04:18:59 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60728) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9XIZ-0002l2-HN for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 04:18:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T9XIk-00041s-9y for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2012 04:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Sep 2012 08:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12364-submit@debbugs.gnu.org id=B12364.134691950715447 (code B ref 12364); Thu, 06 Sep 2012 08:19:02 +0000 Original-Received: (at 12364) by debbugs.gnu.org; 6 Sep 2012 08:18:27 +0000 Original-Received: from localhost ([127.0.0.1]:42040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9XIA-000415-TO for submit@debbugs.gnu.org; Thu, 06 Sep 2012 04:18:27 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:59727) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9XI8-00040x-AZ for 12364@debbugs.gnu.org; Thu, 06 Sep 2012 04:18:25 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M9X00M005NSB300@a-mtaout20.012.net.il> for 12364@debbugs.gnu.org; Thu, 06 Sep 2012 11:18:09 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M9X00M0S5Q99L20@a-mtaout20.012.net.il>; Thu, 06 Sep 2012 11:18:09 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63830 Archived-At: > Date: Thu, 06 Sep 2012 11:37:26 +0900 > From: YAMAMOTO Mitsuharu > > Steps to Reproduce: > > 1. $ emacs -Q & > 2. evaluate (set-fontset-font t 'arabic (font-spec :family "arial" :size 30)) > 3. C-u C-\ arabic RET > 4. u S u > At this moment, the two grapheme clusters look connected. > 5. C-b C-p > Now the two grapheme clusters look unconnected. Not reproducible on Windows XP. Are you using the latest libm17n-flt and libotf libraries, and the latest fonts? > I think at least the two occurrences of the following line in xdisp.c > are wrong. > > int first = (s->first_glyph - glyphs) + (s->cmp ? 1 : s->nchars); > > The value of s->cmp seems to be NULL for the "gstring" cases. These two lines are not executed here, when the above recipe is used. Maybe that's why I don't see the problem.