From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22098: 25.0.50; visual-line-mode and invisible text causes cursor to jump Date: Sun, 06 Dec 2015 19:34:09 +0200 Message-ID: <83poyjeb1q.fsf@gnu.org> References: <87610cipx7.fsf@gnu.org> <83wpssdyyz.fsf@gnu.org> <87fuzg87s6.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449423325 15185 80.91.229.3 (6 Dec 2015 17:35:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2015 17:35:25 +0000 (UTC) Cc: 22098@debbugs.gnu.org To: Ian Dunn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 06 18:35:14 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 1a5dDK-0001Vl-DP for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2015 18:35:10 +0100 Original-Received: from localhost ([::1]:50570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5dDJ-0005sK-Ig for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2015 12:35:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5dDF-0005q2-C6 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2015 12:35:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a5dDC-0002Ey-6y for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2015 12:35:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a5dDC-0002Er-43 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2015 12:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a5dDB-0004i3-Sy for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2015 12:35:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2015 17:35:01 +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.144942327918070 (code B ref 22098); Sun, 06 Dec 2015 17:35:01 +0000 Original-Received: (at 22098) by debbugs.gnu.org; 6 Dec 2015 17:34:39 +0000 Original-Received: from localhost ([127.0.0.1]:40934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5dCp-0004hO-35 for submit@debbugs.gnu.org; Sun, 06 Dec 2015 12:34:39 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:46935) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a5dCU-0004gt-PK for 22098@debbugs.gnu.org; Sun, 06 Dec 2015 12:34:37 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NYY00E005YA8O00@mtaout26.012.net.il> for 22098@debbugs.gnu.org; Sun, 06 Dec 2015 19:36:52 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYY00BNW69FIC30@mtaout26.012.net.il>; Sun, 06 Dec 2015 19:36:52 +0200 (IST) In-reply-to: <87fuzg87s6.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:109694 Archived-At: > From: Ian Dunn > Cc: 22098@debbugs.gnu.org > Date: Sun, 06 Dec 2015 00:28:57 -0500 > > M-g M-g 19 > C-p > C-M-: (add-text-properties (point) (1+ (point)) '(invisible t)) > C-n > C-l C-l > C-p Thanks. With this recipe, I do see some unusual behavior of the cursor, but not the one you described. On my system, the cursor stays at its position before the final C-p, then, a fraction of second later, jumps to its correct position. It doesn't stay at the top line of the window. > > Also, is it really necessary to invoke the commands via M-x, or do you > > see the same problem when you use C-n, C-l, and C-p instead? > > 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 forgot to mention in my original report that this seems similar to > bug #17047 > (https://lists.gnu.org/archive/html/bug-gnu-emacs/2014-03/msg00804.html). > It looks like the old bug addressed the problem with forward-char > and backward-char. I've checked with next-line, but I've never seen > it happen before. I only ever see this problem with previous-line. No, that's a different problem. The problem discussed here happens because point moves outside the window to the place that's invisible. By contrast, bug #17047 was about a situation where the goal position was visible in the window at all times. 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.