From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#12364: 24.2.50; wrong overhang display for gstring compositions Date: Thu, 06 Sep 2012 11:37:26 +0900 Organization: Faculty of Science, Chiba University Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1346899080 24502 80.91.229.3 (6 Sep 2012 02:38:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2012 02:38:00 +0000 (UTC) To: 12364@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 04:38:02 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 1T9Ryi-0006eL-Ky for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2012 04:38:00 +0200 Original-Received: from localhost ([::1]:49963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Ryf-0003eG-MI for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Sep 2012 22:37:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Ryd-0003e9-8V for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 22:37:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9Ryc-0004gl-2c for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 22:37:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9Ryb-0004gg-VG for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 22:37:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T9Ryk-0004kL-UA for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 22:38:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Sep 2012 02:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134689907218207 (code B ref -1); Thu, 06 Sep 2012 02:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Sep 2012 02:37:52 +0000 Original-Received: from localhost ([127.0.0.1]:41695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9RyZ-0004jW-CP for submit@debbugs.gnu.org; Wed, 05 Sep 2012 22:37:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49192) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9RyR-0004jH-LI for submit@debbugs.gnu.org; Wed, 05 Sep 2012 22:37:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9RyH-0004fA-12 for submit@debbugs.gnu.org; Wed, 05 Sep 2012 22:37:33 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:59539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9RyG-0004f6-U6 for submit@debbugs.gnu.org; Wed, 05 Sep 2012 22:37:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9RyF-0003dn-NV for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 22:37:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9RyE-0004ev-Eu for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 22:37:31 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:63945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9RyD-0004eb-N1 for bug-gnu-emacs@gnu.org; Wed, 05 Sep 2012 22:37:30 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id D51BDC055D for ; Thu, 6 Sep 2012 11:37:26 +0900 (JST) User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?UTF-8?Q?Shij=C5=8D?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: NetBSD 3.0 (DF) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:63820 Archived-At: 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. See also the "u-S-u" example in the first screenshot in http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-09/msg00178.html . 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. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp In GNU Emacs 24.2.50.1 (x86_64-apple-darwin12.1.0, X toolkit, Xaw3d scroll bars) of 2012-09-06 on YAMAMOTO-no-iMac.local Bzr revision: 109895 yamaoka@jpl.org-20120905224543-v2x5qiqin2b83lnv Windowing system distributor `The X.Org Foundation', version 11.0.11204000 Configured using: `configure '--enable-checking' '--with-jpeg=no' '--with-gif=no' '--with-tiff=no' 'CFLAGS=-g3'' Important settings: value of $LANG: ja_JP.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t