]> git.eshelyaron.com Git - emacs.git/commitdiff
(TEXT_PROP_MEANS_INVISIBLE): New macro.
authorRichard M. Stallman <rms@gnu.org>
Sat, 11 Mar 1995 22:30:33 +0000 (22:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 11 Mar 1995 22:30:33 +0000 (22:30 +0000)
(TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS): New macro.

src/intervals.h

index 386fc81af65c24f8a1ee19bf2621a7239b922155..e585497f9fcabea2e5d08a2fb0e4acfa05ee3772 100644 (file)
@@ -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 ();