# HG changeset patch # User Richard M. Stallman # Date 794961033 0 # Node ID 7fd3688d36a3be734c65c617e5fd46eeeafa7e2d # Parent 7f0bc7bcf1f3430d182a029967b40251bdf26a2a (TEXT_PROP_MEANS_INVISIBLE): New macro. (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS): New macro. diff -r 7f0bc7bcf1f3 -r 7fd3688d36a3 src/intervals.h --- 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 ();