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.bugs Subject: bug#32177: Current line number shifts one column to the left. Date: Mon, 16 Jul 2018 10:36:12 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1531762905 13841 195.159.176.226 (16 Jul 2018 17:41:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2018 17:41:45 +0000 (UTC) To: 32177@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 16 19:41:41 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 1ff7VD-0003Ut-1I for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2018 19:41:39 +0200 Original-Received: from localhost ([::1]:53032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff7XK-0002Mi-3u for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jul 2018 13:43:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff7Rp-0007ad-5Z for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 13:38:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ff7Rk-0003Fa-8G for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 13:38:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38970) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ff7Rk-0003FU-3H for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 13:38:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ff7Rj-0003gk-Ro for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 13:38:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jul 2018 17:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Emacs Bug Reports Original-Received: via spool by submit@debbugs.gnu.org id=B.153176262914105 (code B ref -1); Mon, 16 Jul 2018 17:38:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jul 2018 17:37:09 +0000 Original-Received: from localhost ([127.0.0.1]:43988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff7Qr-0003fQ-Az for submit@debbugs.gnu.org; Mon, 16 Jul 2018 13:37:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ff7Qp-0003fC-BA for submit@debbugs.gnu.org; Mon, 16 Jul 2018 13:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ff7Qj-0002wN-9f for submit@debbugs.gnu.org; Mon, 16 Jul 2018 13:37:02 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ff7Qi-0002w4-QI for submit@debbugs.gnu.org; Mon, 16 Jul 2018 13:37:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ff7Qh-0007Qn-CS for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 13:37:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ff7Qb-0002tv-UU for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 13:36:59 -0400 Original-Received: from gateway23.websitewelcome.com ([192.185.50.107]:19771) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ff7Qb-0002qs-KE for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 13:36:53 -0400 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 43FFD12334 for ; Mon, 16 Jul 2018 12:36:40 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id f7PxfvjsOBcCXf7QDfbkXk; Mon, 16 Jul 2018 12:36:40 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:To:From:Message-ID:Date: Sender:Reply-To:Cc: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=2Pdif2Aau8YCgVM1CBoKpPd6rrf1w2tNsbMMuRzypNA=; b=LvluGgVerSiEChjjzKv9pO9HeM A1SjxwthJG8a00Z4onKYue98qrWhBMczSavMBfx+wigBxBfLu4maS5oH55ysqrCGaZgZ3nQ0dg7JU Ei0gOIFS9gt/LPD408Lol0ht+lEg5gs4hvC/KxsjdVoF0UyawmJXqVvPnqAM8Cu5m0rabaC9HvdkI d9yCTyxH8aTgDnBAxMMAxEn+A3p19mV3/iTmwpuIfAMoT8nCC6/tRG8G+LlTZB3QxkjKA/uFr7MGK uS1ZmHCHh1MxWJfeawrrzHrFyut2JSJb37asgbnYnw3SNn4OF9I7i7NbP9AKNdW+Spauyv/azPI8y O6a1rlpA==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51157 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1ff7Px-000VtO-HI for bug-gnu-emacs@gnu.org; Mon, 16 Jul 2018 12:36:13 -0500 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: 1ff7Px-000VtO-HI X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:51157 X-Source-Auth: lawlist X-Email-Count: 5 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-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:148580 Archived-At: 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 A modification of the current line is necessary to reproduce this bug. In my case, I notice the bug a few times each day when I place an overlay on the current line. The bug is rather elusive and requires just the right circumstances to see it happen. For example, if I _first_ kill the *GNU Emacs* buffer, then the code above in Step #2 is insufficient to reproduce the bug. On OSX 10.6.8, my build configuration is: CFLAGS='-O0 -g3' ./configure \ --with-ns \ --enable-checking='yes,glyphs' \ --enable-check-lisp-object-type \ --without-compress-install \ --without-makeinfo \ --with-gnutls=no \ --with-mailutils \ --without-makeinfo On Windows XP, my build configuration is: CFLAGS='-O0 -g3' ./configure \ --prefix=/c/docume~1/admini~1/desktop/trunk \ --enable-checking='yes,glyphs' \ --enable-check-lisp-object-type \ --without-compress-install \ --without-makeinfo \ --with-gnutls=no \ --with-mailutils \ --without-makeinfo