From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: Re: Problems with move_it_in_display_line_to X when tabs exist. Date: Sun, 03 Dec 2017 19:01:47 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1512356557 24235 195.159.176.226 (4 Dec 2017 03:02:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2017 03:02:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 04 04:02:30 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLh1Z-0005nf-P2 for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2017 04:02:29 +0100 Original-Received: from localhost ([::1]:40961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLh1f-0005sp-Hl for ged-emacs-devel@m.gmane.org; Sun, 03 Dec 2017 22:02:35 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLh0z-0005sj-Rl for emacs-devel@gnu.org; Sun, 03 Dec 2017 22:01:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLh0w-0003AR-P3 for emacs-devel@gnu.org; Sun, 03 Dec 2017 22:01:53 -0500 Original-Received: from gateway31.websitewelcome.com ([192.185.143.35]:26152) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eLh0w-0003AK-Ff for emacs-devel@gnu.org; Sun, 03 Dec 2017 22:01:50 -0500 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 358841EF097E for ; Sun, 3 Dec 2017 21:01:49 -0600 (CST) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id Lh0ueAvxcmFImLh0vethei; Sun, 03 Dec 2017 21:01:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=5Z1JKBhPQ/6RPh1gOr76ReSvH7laRwUr1smaR8Lu8H4=; b=Qa12Sd6/zUN0CXq2cbKtPT07S5 G5IFHF/s9PVJni8LP8JDeBiY4ioKEvlSaxe3OOPesQfhHxw4IaeV7PnEUF8AJRWzVqgJR9sJH+BIs IWTM1xmBGZMMxY3VhU24lYCwe3ufFtKsY7s21nEO0nC2gvseg3luRd+bhGJrq1oeZm7w/OdotIp5H sbyHv9dWo7HZYIWITylHqJQjmbjd63kh34PxHv+9YahicWdr4ivrL4Hg+J6kUOe0KGr6v/RPHAGud f0nYO4Bt6AEb20IQJz37Pk1/sv1FT9LIbLuK9xyZT+YZjHAp/KEuJN81iL09RtmiUupZjHdVyA/Q6 lIl6Fjfw==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:52345 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from ) id 1eLh0u-001QOx-EI; Sun, 03 Dec 2017 21:01:48 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1eLh0u-001QOx-EI X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:52345 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.143.35 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:220677 Archived-At: I built Emacs 26 for Windows (using my modification patch) and ran the same series of tests along with taking a screen-shot at the link below. it.pixel_width is correct on Emacs 26 for Windows, whereas it.pixel_width is wrong on Emacs 26 for OSX 10.6.8. it.what reports IT_CHARACTER on both platforms, however, I expected the result to be IT_STRETCH. Later this evening, I will experiment with the recipe that you tried in your previous email. SCREEN-SHOT: https://www.lawlist.com/images/pgrowx_c.png GDB: (gdb) frame 2 #2 0x01027098 in mc_draw_crosshairs (w=0x53df718) at xdisp.c:1917 1917 emacs_abort (); (gdb) pgrowx glyph_row TEXT: 17 glyphs 0 0: CHAR[x] pos=1102 blev=0,btyp=L w=8 a+d=12+4 MB 1 8: CHAR[x] pos=1103 blev=0,btyp=L w=8 a+d=12+4 MB 2 16: CHAR[x] pos=1104 blev=0,btyp=L w=8 a+d=12+4 MB 3 24: CHAR[0xbb] pos=1105 blev=0,btyp=L w=8 a+d=12+4 face=30 MB 4 32: STRETCH[16+12] pos=1105 w=16 a+d=12+4 face=29 MB 5 48: CHAR[h] pos=1106 blev=0,btyp=L w=8 a+d=12+4 MB 6 56: CHAR[e] pos=1107 blev=0,btyp=L w=8 a+d=12+4 MB 7 64: CHAR[l] pos=1108 blev=0,btyp=L w=8 a+d=12+4 MB 8 72: CHAR[l] pos=1109 blev=0,btyp=L w=8 a+d=12+4 MB 9 80: CHAR[o] pos=1110 blev=0,btyp=L w=8 a+d=12+4 MB 10 88: CHAR[-] pos=1111 blev=0,btyp=L w=8 a+d=12+4 MB 11 96: CHAR[w] pos=1112 blev=0,btyp=L w=8 a+d=12+4 MB 12 104: CHAR[o] pos=1113 blev=0,btyp=L w=8 a+d=12+4 MB 13 112: CHAR[r] pos=1114 blev=0,btyp=L w=8 a+d=12+4 MB 14 120: CHAR[l] pos=1115 blev=0,btyp=L w=8 a+d=12+4 MB 15 128: CHAR[d] pos=1116 blev=0,btyp=L w=8 a+d=12+4 MB 16 136: CHAR[ ] pos=0 blev=0,btyp=B w=8 a+d=12+4 MB (gdb) print it.pixel_width $1 = 16 (gdb) print it.what $2 = IT_CHARACTER (gdb) print it.current_x $3 = 32 (gdb) print it.method $4 = GET_FROM_DISPLAY_VECTOR (gdb) print it.c $5 = 9 (gdb) print it.char_to_display $6 = 9