[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Point stuck with adjacent overlays and invisibility spec
From: |
Ralf Angeli |
Subject: |
Point stuck with adjacent overlays and invisibility spec |
Date: |
Tue, 21 Feb 2006 23:11:20 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Evaluating the following form will create two adjacent overlays and
point will be stuck at the top of the buffer (at least visually; there
still is feedback, e.g. beeping, if you hold `C-n' long enough and hit
the bottom of the buffer).
(progn
(pop-to-buffer (get-buffer-create "*foo*"))
(insert "text\ntext\ntext\ntext\n")
(goto-char (point-min))
(add-to-invisibility-spec '(outline . t))
(let ((ov (make-overlay (line-beginning-position 2)
(line-beginning-position 3))))
(overlay-put ov 'display "xxx"))
(let ((ov (make-overlay (line-beginning-position 3)
(line-end-position 3))))
(overlay-put ov 'invisible 'outline)))
Such a constellation of overlays may occur if the folding feature of
AUCTeX is used in conjunction with Outline Minor mode.
Point does not get stuck in Emacs 21.4.
--
Ralf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Point stuck with adjacent overlays and invisibility spec,
Ralf Angeli <=