From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus 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 18:49:32 +0200 Message-ID: References: <5871DE9D-63E6-40A5-9D1D-6D07F4AA2343@gmail.com> <83y5qiyso5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1333126246 19825 80.91.229.3 (30 Mar 2012 16:50:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Mar 2012 16:50:46 +0000 (UTC) Cc: 11133@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 30 18:50: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 1SDf27-0002xF-67 for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Mar 2012 18:50:39 +0200 Original-Received: from localhost ([::1]:41822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDf26-00056e-Bw for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Mar 2012 12:50:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDf1z-00055K-MJ for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 12:50:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDf1x-0007Ul-QW for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 12:50:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDf1x-0007UB-KH for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 12:50:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SDfWU-0007dU-Bx for bug-gnu-emacs@gnu.org; Fri, 30 Mar 2012 13:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Mar 2012 17:22: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.133312807229279 (code B ref 11133); Fri, 30 Mar 2012 17:22:02 +0000 Original-Received: (at 11133) by debbugs.gnu.org; 30 Mar 2012 17:21:12 +0000 Original-Received: from localhost ([127.0.0.1]:47256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDfVg-0007cC-1t for submit@debbugs.gnu.org; Fri, 30 Mar 2012 13:21:12 -0400 Original-Received: from mail-bk0-f44.google.com ([209.85.214.44]:44724) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SDfVd-0007c1-Gn for 11133@debbugs.gnu.org; Fri, 30 Mar 2012 13:21:11 -0400 Original-Received: by bkuw5 with SMTP id w5so711877bku.3 for <11133@debbugs.gnu.org>; Fri, 30 Mar 2012 09:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=7fGNANw5Ejb/C55stJWahwf2HU6WjJZ1M27IL8NBwiY=; b=o90iK1vyp4y2WtxUYWQZ5SCnq0ri6QNyAekj5GuKLMGB2uKQ4E8/Q+IhTTZhEktLiP 2MRFdo9MpVRr3f2d4uRtn3LUV7o4lR6HbRRO7ZJazE2nDPbJwg2mU7o0IiDDvOdcVBsu q3ITjafrTho6ffa6/saTRLtnwkEyIGpyzE9jqeRMJFJ4OShXRCDD0mggcS378rQmeru/ 5aM738DcCmjy4ucICAkZggPPd3sn6gpkFWlyFG7KsPQHEOOYDVyYUZAZFfoTHoVvPIBT JGfqiG03oWnTqmXBoI4Ludfz3MYY+yIJs7yeBGaCbfq2k76skEKqlTiH1ab4UaDNqKpI /wyQ== Original-Received: by 10.204.152.88 with SMTP id f24mr1213432bkw.121.1333126175223; Fri, 30 Mar 2012 09:49:35 -0700 (PDT) Original-Received: from [10.0.2.16] (catv-80-99-177-93.catv.broadband.hu. [80.99.177.93]) by mx.google.com with ESMTPS id p19sm21906626bka.1.2012.03.30.09.49.33 (version=SSLv3 cipher=OTHER); Fri, 30 Mar 2012 09:49:34 -0700 (PDT) In-Reply-To: <83y5qiyso5.fsf@gnu.org> X-Mailer: Apple Mail (2.1084) 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:58344 Archived-At: On Mar 30, 2012, at 6:12 PM, Eli Zaretskii wrote: >> From: Ivan Andrus >> Date: Fri, 30 Mar 2012 16:47:05 +0200 >>=20 >> Put the following (including comments) in a buffer and evaluate. >>=20 >> #+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. >>=20 >> ;; 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))) >>=20 >> #+end_src >>=20 >> 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 >=20 > More accurately, "large enough" is the number of screen lines taken by > the overlay string. In my case, it was 7. >=20 >> 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. >=20 > 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. >=20 > I will take a look when I have time. That makes sense. Thanks, Ivan=