bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11133: 24.0.94; Cursor gets "stuck" on an indented line with wrapped


From: Ivan Andrus
Subject: bug#11133: 24.0.94; Cursor gets "stuck" on an indented line with wrapped overlay
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, and once it is stuck, running with a prefix-argument of 2 or
greater will allow you to move past.

FWIW, I ran into this while writing a LaTeX file with preview-mode and a
large equation that wrapped on my screen.

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.

Thanks,
Ivan

In GNU Emacs 24.0.94.10 (i386-apple-darwin10.8.0, NS apple-appkit-1038.36)
of 2012-03-30 on oroszlan.local
Windowing system distributor `Apple', version 10.3.1038
Configured using:
`configure '--with-ns' '-C''

Important settings:
 value of $LC_ALL: nil
 value of $LC_COLLATE: nil
 value of $LC_CTYPE: UTF-8
 value of $LC_MESSAGES: nil
 value of $LC_MONETARY: nil
 value of $LC_NUMERIC: nil
 value of $LC_TIME: nil
 value of $LANG: nil
 value of $XMODIFIERS: nil
 locale-coding-system: utf-8-unix
 default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
 tooltip-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:
f i x SPC <backspace> - a r g u m e n t SPC o f SPC 
2 SPC o r SPC g r e a t e r SPC w i l l SPC a l l o 
w y <backspace> SPC SPC y o u SPC t o SPC m o v e SPC 
p a s t <C-left> <C-left> <C-left> <C-left> <backspace> 
C-e . <C-up> C-x C-e <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <down> <down> <down> 
<down> <down> <C-down> X E <backspace> <backspace> 
C-x C-e <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <down> <down> 
<down> <down> <up> <up> <up> <up> <up> <up> <up> <up> 
<down> <down> <down> <down> <down> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <down> <down> C-3 <C-up> 
<down> <down> <down> C-3 <C-up> <down> <down> <down> 
C-2 <C-up> <down> <down> <down> <down> <C-up> <down> 
<down> <down> <down> <up> C-e C-2 <C-up> <down> <down> 
<down> C-e C-2 <C-up> <down> <down> <down> <down> <up> 
C-2 <C-up> <down-mouse-1> <mouse-1> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> C-w 
<C-right> <C-right> . C-k <backspace> , SPC e v e n 
<C-left> <C-left> <C-left> <C-left> <C-left> ( <backspace> 
<C-right> <C-right> <C-right> <C-right> <C-tab> <C-up> 
<C-tab> <up> <down> C-x C-e <up> <up> <up> <down> C-2 
<up> <up> <up> <down> C-2 <up> <up> <up> <down> C-3 
<up> <up> <up> <down> C-3 <up> <down> C-5 <up> <up> 
<up> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <C-right> <C-right> <C-right> <C-right> <C-right> 
SPC l a r e g <backspace> <backspace> g e <C-right> 
<C-right> <C-right> <C-right> C-k , SPC a n d C-l M-l 
<right> <C-right> <C-right> <C-right> , C-e C-x C-s 
M-x r e p o r <tab> <return>

Recent messages:
byte-code: End of buffer
Undo! [3 times]
Auto-saving...done
byte-code: Beginning of buffer [4 times]
"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
 [2 times]
byte-code: End of buffer [6 times]
Auto-saving...done
"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
Saving file /Users/gvol/vcs/emacs/preview-picture-bug.el...
Wrote /Users/gvol/vcs/emacs/preview-picture-bug.el

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr filecache emacsbug message format-spec
rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-hg time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
image fringe lisp-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 loaddefs button faces cus-face files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process ns multi-tty
emacs)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]