Mercurial > emacs
changeset 10963:7fd3688d36a3
(TEXT_PROP_MEANS_INVISIBLE): New macro.
(TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS): New macro.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 11 Mar 1995 22:30:33 +0000 |
parents | 7f0bc7bcf1f3 |
children | 474b6b03a71f |
files | src/intervals.h |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/intervals.h Sat Mar 11 22:03:27 1995 +0000 +++ b/src/intervals.h Sat Mar 11 22:30:33 1995 +0000 @@ -160,6 +160,23 @@ (! NULL_INTERVAL_P (i) && ! NILP (textget ((i)->plist, Qrear_nonsticky))) +/* If PROP is the `invisible' property of a character, + this is 1 if the character should be treated as invisible. */ + +#define TEXT_PROP_MEANS_INVISIBLE(prop) \ + (EQ (current_buffer->invisibility_spec, Qt) \ + ? ! NILP (prop) \ + : invisible_p (prop, current_buffer->invisibility_spec)) + +/* If PROP is the `invisible' property of a character, + this is 1 if the character should be treated as invisible + and should have an ellipsis. */ + +#define TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS(prop) \ + (EQ (current_buffer->invisibility_spec, Qt) \ + ? 0 \ + : invisible_ellipsis_p (prop, current_buffer->invisibility_spec)) + /* Declared in alloc.c */ extern INTERVAL make_interval ();