From: Keith David Bershatsky <esq@lawlist.com>
To: 32177@debbugs.gnu.org
Subject: bug#32177: Current line number shifts one column to the left.
Date: Mon, 16 Jul 2018 10:36:12 -0700 [thread overview]
Message-ID: <m24lgz84mr.wl%esq@lawlist.com> (raw)
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
next reply other threads:[~2018-07-16 17:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-16 17:36 Keith David Bershatsky [this message]
2018-07-16 18:20 ` bug#32177: Current line number shifts one column to the left Eli Zaretskii
2018-07-16 18:40 ` Eli Zaretskii
2018-07-21 10:34 ` Eli Zaretskii
2018-07-16 20:33 ` Keith David Bershatsky
2018-07-17 2:30 ` Eli Zaretskii
2018-07-16 22:16 ` Keith David Bershatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m24lgz84mr.wl%esq@lawlist.com \
--to=esq@lawlist.com \
--cc=32177@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).