summaryrefslogtreecommitdiff
path: root/src/intervals.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-03-11 22:30:33 +0000
committerRichard M. Stallman <rms@gnu.org>1995-03-11 22:30:33 +0000
commit45506cd4a114d141d324c6d8f80af9b648c9af7d (patch)
tree025fd014642ff26b8b27725cfb5d5cb9f72c454b /src/intervals.h
parent8ff23787881863d14c395df192a1c88a2af8470c (diff)
downloademacs-45506cd4a114d141d324c6d8f80af9b648c9af7d.tar.gz
(TEXT_PROP_MEANS_INVISIBLE): New macro.
(TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS): New macro.
Diffstat (limited to 'src/intervals.h')
-rw-r--r--src/intervals.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/intervals.h b/src/intervals.h
index 386fc81af65..e585497f9fc 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -160,6 +160,23 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
(! 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 ();