Description of `buffer-invisibility-spec' in info page
(info "(elisp) Invisible Text") is subtlely
misleading. For a cons cell,
it says:
`(ATOM . t)'
A character is invisible if its `invisible' property
value is ATOM or if it is a list with ATOM as a
member.
Moreover, if this character is at the end of a line
and
is followed by a visible newline, it displays an
ellipsis.
But "at the end of a line" and "followed by a
visible newline" are not
necessary. For example, evaluating the following
expressions gets
an ellipsis in the *scratch* buffer:
(add-to-invisibility-spec '(with-ellipsis . t))
(make-overlay 1 3)
(let ((o (car (overlays-at 1))))
(overlay-put o 'invisible 'with-ellipsis))
Regards,
Guanpeng Xu
____________________________________________________________
_____
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/di
rect/01/
_______________________________________________
Emacs-devel mailing list
Emacs-devel gnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel
|