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

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

visibility of overlays at end of buffer


From: martin rudalics
Subject: visibility of overlays at end of buffer
Date: Mon, 30 Jan 2006 08:56:39 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

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)'





reply via email to

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