* Description of `buffer-invisibility-spec' in info page
@ 2007-03-30 4:04 Herbert Euler
2007-03-31 20:43 ` Richard Stallman
0 siblings, 1 reply; 2+ messages in thread
From: Herbert Euler @ 2007-03-30 4:04 UTC (permalink / raw)
To: emacs-devel; +Cc: herberteuler
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/direct/01/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-31 20:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-30 4:04 Description of `buffer-invisibility-spec' in info page Herbert Euler
2007-03-31 20:43 ` Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).