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#17244: 24.3.90; `line-move-visual' errors when moving across wrapped lines with an overlay property of 'display Date: Fri, 11 Apr 2014 15:28:55 -0600 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1136331259cd0a04f6cb054f X-Trace: ger.gmane.org 1397251826 10201 80.91.229.3 (11 Apr 2014 21:30:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Apr 2014 21:30:26 +0000 (UTC) To: 17244@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 11 23:30:19 2014 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 1WYj1c-0004MG-MF for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Apr 2014 23:30:16 +0200 Original-Received: from localhost ([::1]:60048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYj1c-0005aP-Ad for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Apr 2014 17:30:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYj1U-0005XD-2y for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2014 17:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYj1Q-0002yR-6j for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2014 17:30:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYj1Q-0002yF-45 for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2014 17:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WYj1P-00015E-9r for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2014 17:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Apr 2014 21:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17244 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13972517594074 (code B ref -1); Fri, 11 Apr 2014 21:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Apr 2014 21:29:19 +0000 Original-Received: from localhost ([127.0.0.1]:45771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WYj0f-00013c-CR for submit@debbugs.gnu.org; Fri, 11 Apr 2014 17:29:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52135) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WYj0c-00013L-F0 for submit@debbugs.gnu.org; Fri, 11 Apr 2014 17:29:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYj0T-0002lW-Dk for submit@debbugs.gnu.org; Fri, 11 Apr 2014 17:29:09 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYj0T-0002lS-Aw for submit@debbugs.gnu.org; Fri, 11 Apr 2014 17:29:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYj0P-0005Ot-J2 for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2014 17:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYj0L-0002ki-F6 for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2014 17:29:01 -0400 Original-Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:56416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYj0L-0002kR-34 for bug-gnu-emacs@gnu.org; Fri, 11 Apr 2014 17:28:57 -0400 Original-Received: by mail-pd0-f169.google.com with SMTP id fp1so5744805pdb.14 for ; Fri, 11 Apr 2014 14:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=+WU/RtyszSMF8j5AVCa4ttsDBsktGL10O/sMVYEJuiY=; b=T0ZAEk8HwIYpev0R+1MJDe3aoB8eAQbsSxss1ciTJg+KqbDkDl1qIzXKxM3TLAYjBj +JPOIXdHVZIgdIlckt5U/dbsOFr02B2ih4hxLkbWZ0NwZoBlaX4OCZKKQ6L1HfHM1WOw uE6GbZYS3GmwU1Ox0Oid9WtJZz088eKd0wgjIObVfZYPjoSL3q81FQ6Ak3DvGSc+0WQO hVqSdwi63lzGRAD3H5LQvI/f+1bK9+oqrl8DLByW5vMy/1BdVJgRB2P8ZdVDk/juc5cF QqsaL+n7W15eRWCAjEdZo7o/q4Gu+6Ytjm15Qbrn3/jV9Fj6sJZg2c6kcaIoQ4axLaPX yCVA== X-Received: by 10.66.65.169 with SMTP id y9mr7995628pas.145.1397251735406; Fri, 11 Apr 2014 14:28:55 -0700 (PDT) Original-Received: by 10.70.17.101 with HTTP; Fri, 11 Apr 2014 14:28:55 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 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:87961 Archived-At: --001a1136331259cd0a04f6cb054f Content-Type: text/plain; charset=ISO-8859-1 Starting from Emacs -Q, create a buffer with the following contents. Notice that the first two (2) lines are blank, and the next is one long line (in case it gets broken by email) #### buffer start: ;; I think this needs to be really long here. Why? I don't really know, but a guess. I think this needs to be really long here. Why? I don't really know, but a guess. I think this needs to be really long here. Why? I don't really know, but a guess. I think this needs to be really long here. Why? I don't really know, but a guess. I think this needs to be really long here. Why? I don't really know, but a guess. I think this needs to be really long here. Why? I don't really know, but a guess. (let ((ov (make-overlay 3 515))) (overlay-put ov 'display "hi\n")) (line-move-visual -5) 1. Make sure the window is skinny enough that the comment line wraps. 2. Evaluate the first form, creating an overlay. 3. Evaluate the second form. It is important that point be at the end of the "line-move-visual" line. 4. You get a warning about beginning-of-buffer, when it clearly did not reach the beginning-of-buffer. As near as I can tell, the incorrect error message is because it doesn't move as far at it thinks it should (the real bug), and it assumes the reason it didn't is because it made it to the beginning (or end) of the buffer. -Ivan In GNU Emacs 24.3.90.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) of 2014-04-11 on iandrus-osx Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --with-ns' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-e C-x C-e C-x C-e C-e C-x C-e SPC SPC SPC SPC SPC C-x C-e C-/ C-/ C-c C-c s-x C-/ M-x m a i r e p o r t Recent messages: line-move-visual: Beginning of buffer Beginning of buffer [5 times] t line-move-visual: Beginning of buffer t Undo! [2 times] C-c C-c is undefined Undo! Making completion list... C-c C-c is undefined Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu vc-hg time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 74077 4946) (symbols 48 17641 0) (miscs 40 49 163) (strings 32 10552 3708) (string-bytes 1 281155) (vectors 16 9174) (vector-slots 8 367902 7774) (floats 8 54 455) (intervals 56 212 7) (buffers 960 13)) --001a1136331259cd0a04f6cb054f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Starting = from Emacs -Q, create a buffer with the following contents.
Notice that = the first two (2) lines are blank, and the next is one long
line (in ca= se it gets broken by email)

#### buffer start:


;; I think this needs to be really long h= ere.  Why?  I don't really know, but a guess.  I think t= his needs to be really long here.  Why?  I don't really know,= but a guess.  I think this needs to be really long here.  Why? &= nbsp;I don't really know, but a guess.  I think this needs to be r= eally long here.  Why?  I don't really know, but a guess. &nb= sp;I think this needs to be really long here.  Why?  I don't = really know, but a guess.  I think this needs to be really long here. =  Why?  I don't really know, but a guess.
(let ((ov (make-overlay 3 515)))
 (overlay-put ov 'display &qu= ot;hi\n"))
(line-move-visual -5)

1. Make sure the window is = skinny enough that the comment line wraps.
2. Evaluate the first form, c= reating an overlay.
3. Evaluate the second form.  It is important that point be at the end=
   of the "line-move-visual" line.
4. You get a = warning about beginning-of-buffer, when it clearly did not
   = reach the beginning-of-buffer.

As near as I can tell, the incorrect error message is because it doesn&= rsquo;t 
move as far at it thinks it should (the real bug), a= nd it assumes the 
reason it didn't is because it m= ade it to the beginning (or end) of the 
buffer.

-Ivan

In GNU Emacs 24.3.90.1 (x86_64-apple-darwi= n13.1.0, NS apple-appkit-1265.19)
of 2014-04-11 on iandrus-osx
Window= ing system distributor `Apple', version 10.3.1265
Configured using:<= br> `configure --with-ns'

Important settings:
 value of $LA= NG: en_US.UTF-8
 locale-coding-system: utf-8-unix

Major mod= e: Emacs-Lisp

Minor modes in effect:
 tooltip-mode: t
&= nbsp;electric-indent-mode: t
 mouse-wheel-mode: t
 tool-bar-mode: t
 menu-bar-mo= de: t
 file-name-shadow-mode: t
 global-font-lock-mode: t=
 font-lock-mode: t
 blink-cursor-mode: t
 auto-= composition-mode: t
 auto-encryption-mode: t
 auto-compression-mode: t
 line-number-mode: t
 tra= nsient-mark-mode: t

Recent input:
<down-mouse-1> <mouse-= 1> C-x C-e <down> C-x C-e <down-mouse-1>
<mouse-1> = <up> <up> <up> <up> <up> <down> <dow= n> <up>
<up> <down> <down> <up> <up> <down> <= ;down> <down> <down>
<down> <up> <up> &= lt;up> <up> <up> <down> <down> <down>
<down> <down> <up> <up> <up> <up> <u= p> <down> <down>
<down> <down> <down> &= lt;down> C-x C-e <down> <down> <down>
<down> = C-e C-x C-e <down-mouse-1> <mouse-1> <return>
SPC SPC SPC SPC SPC C-x C-e C-/ C-/ <help-echo> C-c
C-c s-x C-/ M-= x m a i <tab> <C-backspace> r e p o <tab>
r t <tab&= gt; <return>

Recent messages:
line-move-visual: Beginning o= f buffer
Beginning of buffer [5 times]
t
line-move-visual: Beginning of buffer=
t
Undo! [2 times]
C-c C-c is undefined
Undo!
Making complet= ion list...
C-c C-c is undefined

Load-path shadows:
None found= .

Features:
(shadow sort gnus-util mail-extr emacsbug message format-s= pec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 = mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-u= til
help-fns mail-prsvr mail-utils help-mode easymenu vc-hg time-date
toolti= p electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
ns-win to= ol-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment lis= p-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
fra= me cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet l= ao korean japanese hebrew greek romanian slovak czech european
ethiopic = indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexpfiles text-properties overlay sha1 md5 base64 format env code-pages mulecustom widget hashtable-print-readable backquote make-network-process
cocoa ns multi-tty emacs)

Memory information:
((conses 16 74077 4= 946)
(symbols 48 17641 0)
(miscs 40 49 163)
(strings 32 10552 3708= )
(string-bytes 1 281155)
(vectors 16 9174)
(vector-slots 8 367902 7774= )
(floats 8 54 455)
(intervals 56 212 7)
(buffers 960 13))

=
--001a1136331259cd0a04f6cb054f--