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#11133: 24.0.94; Cursor gets "stuck" on an indented line with wrapped overlay Date: Fri, 30 Mar 2012 19:12:10 +0300 Message-ID: <83y5qiyso5.fsf@gnu.org> References: <5871DE9D-63E6-40A5-9D1D-6D07F4AA2343@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1333123968 32208 80.91.229.3 (30 Mar 2012 16:12:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Mar 2012 16:12:48 +0000 (UTC) Cc: 11133@debbugs.gnu.org To: Ivan Andrus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 30 18:12:45 2012 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 1SDeRO-00019L-PS for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Mar 2012 18:12:42 +0200 Original-Received: from localhost ([::1]:33063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDeRN-0001qV-Pk for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Mar 2012 12:12:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44566) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDeRG-0001pa-Io for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 12:12:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDeRB-0006ZT-JA for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 12:12:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDeRB-0006Z1-FM for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 12:12:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SDevi-0006eh-Bz for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 12:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Mar 2012 16:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11133 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11133-submit@debbugs.gnu.org id=B11133.133312583025559 (code B ref 11133); Fri, 30 Mar 2012 16:44:02 +0000 Original-Received: (at 11133) by debbugs.gnu.org; 30 Mar 2012 16:43:50 +0000 Original-Received: from localhost ([127.0.0.1]:47232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDevV-0006eB-8V for submit@debbugs.gnu.org; Fri, 30 Mar 2012 12:43:49 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:59919) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDevR-0006e1-AS for 11133@debbugs.gnu.org; Fri, 30 Mar 2012 12:43:47 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M1P00200GQ3Q300@a-mtaout23.012.net.il> for 11133@debbugs.gnu.org; Fri, 30 Mar 2012 19:12:10 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.100.223]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M1P0027SH09QO00@a-mtaout23.012.net.il>; Fri, 30 Mar 2012 19:12:10 +0300 (IDT) In-reply-to: <5871DE9D-63E6-40A5-9D1D-6D07F4AA2343@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:58342 Archived-At: > From: Ivan Andrus > Date: Fri, 30 Mar 2012 16:47:05 +0200 > > Put the following (including comments) in a buffer and evaluate. > > #+begin_src emacs-lisp > ;; Note that the next line is indented > ;; This buffer is for notes you don't want to save, and for Lisp evaluation.;; If you want to create a file, visit that file with C-x C-f,;; then enter the text in that file's own buffer. > > ;; evaluate this > (let ((ov (make-overlay > (progn (goto-char (point-min)) > (forward-line) > (back-to-indentation) > (point)) > (progn (end-of-line) > (point)) > nil t nil))) > (overlay-put ov 'display > (make-string 500 ?b))) > > #+end_src > > Now run `previous-line' several times and it will get stuck at the > indentation of the bbbbb line. If you have an extremely wide screen you > may need to shrink the emacs window so that the bbbb line wraps. Also > note that running `previous-line' with a large prefix-argument will > move past the line More accurately, "large enough" is the number of screen lines taken by the overlay string. In my case, it was 7. > This does not seem to be a problem in Emacs 22.1.1 in a terminal which > is the only other emacs I have easy access to. This is a bug in visual line movement. Visual line movement was introduced in Emacs 23, that's why you don't see this in Emacs 22. In Emacs 23, the cursor gets stuck similarly, so this is not a regression wrt Emacs 23. Disable line-move-visual with the current 24 trunk, and the problem will go away in Emacs 24 as well. I will take a look when I have time.