From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38731: 27.0.50; Unexpected redisplay behaviour. Cursor =?UTF-8?Q?can=E2=80=99t?= be moved to end of line. Date: Thu, 26 Dec 2019 19:29:21 +0200 Message-ID: <83a77fq9la.fsf@gnu.org> References: <835zi5wwmr.fsf@gnu.org> <20191226125917.GA71460@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128423"; mail-complaints-to="usenet@blaine.gmane.org" Cc: netjune@outlook.com, 38731@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 26 18:30:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ikWxe-000XIN-4y for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Dec 2019 18:30:10 +0100 Original-Received: from localhost ([::1]:55430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikWxd-0007wA-2g for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Dec 2019 12:30:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53090) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikWxX-0007uq-DG for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2019 12:30:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ikWxW-0008Vn-BT for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2019 12:30:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50199) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ikWxW-0008Vf-7h for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2019 12:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ikWxW-0006Zt-4e for bug-gnu-emacs@gnu.org; Thu, 26 Dec 2019 12:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Dec 2019 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38731 X-GNU-PR-Package: emacs Original-Received: via spool by 38731-submit@debbugs.gnu.org id=B38731.157738137325217 (code B ref 38731); Thu, 26 Dec 2019 17:30:02 +0000 Original-Received: (at 38731) by debbugs.gnu.org; 26 Dec 2019 17:29:33 +0000 Original-Received: from localhost ([127.0.0.1]:56172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ikWx2-0006Ye-Vk for submit@debbugs.gnu.org; Thu, 26 Dec 2019 12:29:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ikWx1-0006YQ-Lu for 38731@debbugs.gnu.org; Thu, 26 Dec 2019 12:29:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ikWwv-0008Gc-L5; Thu, 26 Dec 2019 12:29:25 -0500 Original-Received: from [176.228.60.248] (port=2804 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ikWwu-00053l-LW; Thu, 26 Dec 2019 12:29:25 -0500 In-reply-to: <20191226125917.GA71460@breton.holly.idiocy.org> (message from Alan Third on Thu, 26 Dec 2019 12:59:17 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:173789 Archived-At: > Date: Thu, 26 Dec 2019 12:59:17 +0000 > From: Alan Third > Cc: HaiJun Zhang , 38731@debbugs.gnu.org > > In ns_draw_glyph_string I can see that s->x is correctly set to 136 > when the backtrace doesn’t contain expose_frame, but 178 when it does. Isn't it the other way around? The correct display should start at a larger X coordinate. Or maybe I don't understand what is s->x in this context, i.e. what glyph string is S. > The issue seems to rely on the combination of truncate lines mode, > global hl mode and tabs on the left. The number of tabs seems to make > no difference, the offset remains the same, and replacing tabs with > spaces displays correctly. > > Any thoughts on how to debug this further? A TAB is displayed by a stretch glyph, so maybe start looking there.