From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32177: Current line number shifts one column to the left. Date: Mon, 16 Jul 2018 21:20:04 +0300 Message-ID: <83fu0j82ln.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1531765152 7924 195.159.176.226 (16 Jul 2018 18:19:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2018 18:19:12 +0000 (UTC) Cc: 32177@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 16 20:19:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ff85U-0001xc-CV for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2018 20:19:08 +0200 Original-Received: from localhost ([::1]:53178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff87b-0006A5-9K for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2018 14:21:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff87N-00068R-QS for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 14:21:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ff87K-0004VR-LR for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 14:21:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ff87K-0004VI-HK for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 14:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ff87K-0004m1-6s for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 14:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jul 2018 18:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32177-submit@debbugs.gnu.org id=B32177.153176520718229 (code B ref 32177); Mon, 16 Jul 2018 18:21:02 +0000 Original-Received: (at 32177) by debbugs.gnu.org; 16 Jul 2018 18:20:07 +0000 Original-Received: from localhost ([127.0.0.1]:44023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff86R-0004jw-A5 for submit@debbugs.gnu.org; Mon, 16 Jul 2018 14:20:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff86P-0004jF-4w for 32177@debbugs.gnu.org; Mon, 16 Jul 2018 14:20:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ff86G-0003no-SG for 32177@debbugs.gnu.org; Mon, 16 Jul 2018 14:19:59 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff86G-0003nj-Ol; Mon, 16 Jul 2018 14:19:56 -0400 Original-Received: from [176.228.60.248] (port=2316 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ff86G-0004wF-9o; Mon, 16 Jul 2018 14:19:56 -0400 In-reply-to: (message from Keith David Bershatsky on Mon, 16 Jul 2018 10:36:12 -0700) 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: 208.118.235.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:148582 Archived-At: > Date: Mon, 16 Jul 2018 10:36:12 -0700 > From: Keith David Bershatsky > > 1. Launch a newly built GUI version of Emacs master branch (07/16/2018). > > 2. WINDOWS XP -- GUI Emacs: From the *GNU Emacs* welcome screen, type M-: and evaluate the following: > > (progn > (switch-to-buffer (get-buffer-create "foo")) > (setq header-line-format "foo") > (display-line-numbers-mode 1) > (setq bidi-display-reordering nil) > (dotimes (i 57) > (insert "\n")) > (recenter 1) > (sit-for 1) > (insert "@")) > > [OR] > > 2. OSX 10.6.8 GUI Emacs: From the *GNU Emacs* welcome screen, type M-: and evaluate the following: > > (progn > (switch-to-buffer (get-buffer-create "foo")) > (setq header-line-format "foo") > (display-line-numbers-mode 1) > (setq bidi-display-reordering nil) > (dotimes (i 50) > (insert "\n")) > (recenter 1) > (sit-for 1) > (insert "@")) > > 3. Observe that line number 58 (on Windows XP), or line number 51 (on OSX 10.6.8), shifts one column to the left of where it should be. Here is a link to a screenshot depicting the bug with both versions of Emacs (Windows / OSX): > > https://www.lawlist.com/images/bug_07_16_2018.png Actually, the screenshot shows that line number 57 is to the right of where it should have been. In any case, I cannot reproduce this here, not in "emacs -Q", not on master and not on the emacs-26 branch. Why did you need to turn off bidi-display-reordering? Does the problem go away when you don't do that?