From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Dunn Newsgroups: gmane.emacs.bugs Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump Date: Tue, 08 Dec 2015 20:33:39 -0500 Message-ID: <87wpsos8wc.fsf@gnu.org> References: <87610cipx7.fsf@gnu.org> <83wpssdyyz.fsf@gnu.org> <87fuzg87s6.fsf@gnu.org> <83poyjeb1q.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1449710014 26304 80.91.229.3 (10 Dec 2015 01:13:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2015 01:13:34 +0000 (UTC) Cc: 22098@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 10 02:13:18 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a6pnJ-0000Ck-JT for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Dec 2015 02:13:17 +0100 Original-Received: from localhost ([::1]:38816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6pnI-00057U-TB for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Dec 2015 20:13:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6pnA-0004xr-JB for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2015 20:13:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6pn6-0002I9-JM for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2015 20:13:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6pn6-0002I4-DT for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2015 20:13:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1a6pn6-00080W-AD for bug-gnu-emacs@gnu.org; Wed, 09 Dec 2015 20:13:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ian Dunn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Dec 2015 01:13:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22098 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22098-submit@debbugs.gnu.org id=B22098.144970994330475 (code B ref 22098); Thu, 10 Dec 2015 01:13:04 +0000 Original-Received: (at 22098) by debbugs.gnu.org; 10 Dec 2015 01:12:23 +0000 Original-Received: from localhost ([127.0.0.1]:38319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a6pmR-0007vF-9m for submit@debbugs.gnu.org; Wed, 09 Dec 2015 20:12:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50505) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1a6pcN-0007ZB-4G for 22098@debbugs.gnu.org; Wed, 09 Dec 2015 20:01:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6TdU-000520-Us for 22098@debbugs.gnu.org; Tue, 08 Dec 2015 20:33:44 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6TdU-00051w-Rk for 22098@debbugs.gnu.org; Tue, 08 Dec 2015 20:33:40 -0500 Original-Received: from cpe-45-46-215-8.rochester.res.rr.com ([45.46.215.8]:33300 helo=escafil) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1a6TdU-0008OZ-7H; Tue, 08 Dec 2015 20:33:40 -0500 In-Reply-To: <83poyjeb1q.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 06 Dec 2015 19:34:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109820 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> I try not to assume that everyone has the same key-bindings as me, so I >> thought it might help to use the actual command names. > > Yes, but you should be aware that this might make a difference for > redisplay problems: typing M-x causes a mildly thorough redisplay, so > it might obscure some problems and cause some others. That's why I > asked. > I did not know that. Thanks for the tip. > Anyway, I fixed the problem I see here in commit cca5629 on the > emacs-25 branch. Please see if your problem is solved by that change. > > Thanks. Thanks once again for the quick response, and my apologies for my sluggish response. That fixed the problem in that sample I gave to you, but I noticed a similar problem that I just figured out how to replicate: emacs -Q output.txt visual-line-mode global-hl-line-mode M-g M-g 19 C-p C-M-: (add-text-properties (point) (1+ (point)) '(invisible t)) C-p C-l C-l C-n C-n C-p What I see happen is point jump to exactly half-way down the window. This only seems to happen when the invisible text is on the second visual line of the window, but the start of the line isn't the first. To demonstrate this, here is what I see when I encounter the bug: words are formatted and printed--emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish. I make the 'w' in "way" invisible (since making the 'e' in "everything" invisible causes that word to jump to the previous visual line), and re-position the window such that "words" is the first visible word in the window (So those three lines are the first three visual lines of the window). Then, I move point down two visual lines, and then try to move it back up so it is over the word "ay" (way with an invisible "w"). When I do, the cursor (and I assume point) immediately jumps to one line above the middle of the window. I verified this last bit by moving the cursor in an adjacent window to the exact center, and comparing. The cursor in the first window appears to be exactly one line above center. Also, it only happens when global-hl-line-mode is also active. If the involvement of global-hl-line-mode in this constitutes a separate bug, then just let me know so I can file another report. I updated output.txt with with additional (actual) text, so to verify that we are in fact using the same file, I've attached it again. Once again, thank you for your help. Ian Dunn --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=output.txt Insert a bunch of text right here a bunch more right here maybe some here If you are a professional writer--i.e., if someone else is getting paid to worry about how your words are formatted and printed--emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish. More text here More text here Some text here for good measure --=-=-=--