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

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

Re: visibility of overlays at end of buffer


From: Kim F. Storm
Subject: Re: visibility of overlays at end of buffer
Date: Sat, 25 Feb 2006 00:32:01 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

I have just installed a fix for this.


martin rudalics <address@hidden> writes:

> With emacs -Q evaluate ...
>
> (get-buffer-create "*over*")
>
> (defvar bar-over)
>
> (with-current-buffer "*over*"
>    (delete-region (point-min) (point-max))
>    (insert "foo\n")
>    (let ((at (point)))
>      (insert "bar\nbar\nbar\n")
>      (setq bar-over (make-overlay at (point-max))))
>    (overlay-put bar-over 'invisible t))
>
> (defun bar-over ()
>    (interactive)
>    (overlay-put bar-over 'invisible (not (overlay-get bar-over 'invisible))))
>
> (global-set-key [(control meta z)] 'bar-over)
>
> ... and enter buffer *over*.  On my system
>
> - with the cursor before "foo" C-M-z never displays / hides the "bar"s,
>
> - with the cursor after "foo\n" the "bar"s get displayed when I hit
>    C-M-z twice (if the "bar"s have been already displayed before, it
>    suffices to do C-M-z once to display / hide them),
>
> - M-x bar-over displays / hides the "bar"s regardless of the position of
>    the cursor.
>
> So far I was able to reproduce the problem only when the invisibility
> overlay was at the end of a buffer and spanned more than one line.
>
>
> With GNU Emacs 22.0.50.1 (i386-mingw-windows98.3000) of 2006-01-05
> X server distributor `Microsoft Corp.', version 4.90.3000
> configured using `configure --with-gcc (3.4)'
>
>
>
> _______________________________________________
> emacs-pretest-bug mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
>
>

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

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