[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Confusion regarding invisible text
From: |
Nikolaj Schumacher |
Subject: |
Re: Confusion regarding invisible text |
Date: |
Wed, 01 Oct 2008 21:47:30 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin) |
David <de_bb@arcor.de> wrote:
> This seems to imply that cursor movement would skip over invisible text,
> or am I misunderstanding this paragraph? I'd appreciate if someone could
> explain this behavior to me, and maybe also how to best avoid a
> situation like the above.
I come to the same conclusions as you, David, and think this is a bug.
Please report it using M-x report-emacs-bug.
Surprisingly, it works as expected when using overlays, i.e.:
(save-excursion
(set-buffer (get-buffer-create "invtest"))
(erase-buffer)
(insert "xxxx\naaaaa\nbbbbb\n")
(goto-char (point-min))
(forward-line 1)
(let ((ov (make-overlay (point) (1+ (point-at-eol)))))
(overlay-put ov 'invisible t)))
regards,
Nikolaj Schumacher
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Confusion regarding invisible text,
Nikolaj Schumacher <=