From: "Herbert Euler" <herberteuler@hotmail.com>
To: emacs-devel@gnu.org
Cc: herberteuler@hotmail.com
Subject: Description of `buffer-invisibility-spec' in info page
Date: Fri, 30 Mar 2007 12:04:30 +0800 [thread overview]
Message-ID: <BAY143-F196064004A91AD45975523DA630@phx.gbl> (raw)
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/
next reply other threads:[~2007-03-30 4:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-30 4:04 Herbert Euler [this message]
2007-03-31 20:43 ` Description of `buffer-invisibility-spec' in info page Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY143-F196064004A91AD45975523DA630@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).