emacs-devel
[Top][All Lists]
Advanced

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

Description of `buffer-invisibility-spec' in info page


From: Herbert Euler
Subject: Description of `buffer-invisibility-spec' in info page
Date: Fri, 30 Mar 2007 12:04:30 +0800

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/





reply via email to

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