From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Problems with move_it_in_display_line_to X when tabs exist. Date: Mon, 04 Dec 2017 18:26:04 +0200 Message-ID: <83mv2yxxwj.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1512404815 19101 195.159.176.226 (4 Dec 2017 16:26:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2017 16:26:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 04 17:26:51 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 1eLtZx-0004NN-9a for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2017 17:26:49 +0100 Original-Received: from localhost ([::1]:43989 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLtZz-0006p0-GQ for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2017 11:26:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLtZT-0006oq-Nm for emacs-devel@gnu.org; Mon, 04 Dec 2017 11:26:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLtZQ-00071I-Bi for emacs-devel@gnu.org; Mon, 04 Dec 2017 11:26:19 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLtZQ-000710-9T; Mon, 04 Dec 2017 11:26:16 -0500 Original-Received: from [176.228.60.248] (port=4299 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eLtZP-0007eL-Fx; Mon, 04 Dec 2017 11:26:15 -0500 In-reply-to: (message from Keith David Bershatsky on Sun, 03 Dec 2017 19:01:47 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:220703 Archived-At: > Date: Sun, 03 Dec 2017 19:01:47 -0800 > From: Keith David Bershatsky > Cc: emacs-devel@gnu.org > > 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. I'm surprised you see a difference. This code is supposed to be platform independent. So I guess you need to examine all the places in xdisp.c which are "#ifded NS" or "#ifndef NS". > it.what reports IT_CHARACTER on both platforms, however, I expected the result to be IT_STRETCH. This is expected, and not a bug: IT_STRETCH means we are producing stretch glyphs "out of thin air", this happens when processing 'space' display properties and line-prefixes. When we display a TAB, we produce the stretch glyph from a TAB, which is a character.