List Info

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




Description of `buffer-invisibility-spec' in info page
country flaguser name
China
2007-03-29 23:04:30
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-develgnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel

Re: Description of `buffer-invisibility-spec' in info page
country flaguser name
United States
2007-03-31 15:43:12
I updated the manual.  Thanks.


_______________________________________________
Emacs-devel mailing list
Emacs-develgnu.org
htt
p://lists.gnu.org/mailman/listinfo/emacs-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )