aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-03-11 22:30:33 +0000
committerRichard M. Stallman1995-03-11 22:30:33 +0000
commit47b4c04d0815c835302f15e40fd8601dfc8fae1c (patch)
tree782a56430e42fa488da1290aafcdbccbe9df5933 /src
parent041aa96f12491a64f0f0d4fec6a56eb83f38ffbf (diff)
downloademacs-47b4c04d0815c835302f15e40fd8601dfc8fae1c.tar.gz
emacs-47b4c04d0815c835302f15e40fd8601dfc8fae1c.zip
(TEXT_PROP_MEANS_INVISIBLE): New macro.
(TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS): New macro.
Diffstat (limited to 'src')
-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. */
160 (! NULL_INTERVAL_P (i) && ! NILP (textget ((i)->plist, Qrear_nonsticky))) 160 (! NULL_INTERVAL_P (i) && ! NILP (textget ((i)->plist, Qrear_nonsticky)))
161 161
162 162
163/* If PROP is the `invisible' property of a character,
164 this is 1 if the character should be treated as invisible. */
165
166#define TEXT_PROP_MEANS_INVISIBLE(prop) \
167 (EQ (current_buffer->invisibility_spec, Qt) \
168 ? ! NILP (prop) \
169 : invisible_p (prop, current_buffer->invisibility_spec))
170
171/* If PROP is the `invisible' property of a character,
172 this is 1 if the character should be treated as invisible
173 and should have an ellipsis. */
174
175#define TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS(prop) \
176 (EQ (current_buffer->invisibility_spec, Qt) \
177 ? 0 \
178 : invisible_ellipsis_p (prop, current_buffer->invisibility_spec))
179
163/* Declared in alloc.c */ 180/* Declared in alloc.c */
164 181
165extern INTERVAL make_interval (); 182extern INTERVAL make_interval ();