summaryrefslogtreecommitdiff
path: root/src/intervals.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-06-08 21:08:56 +0000
committerRichard M. Stallman <rms@gnu.org>1993-06-08 21:08:56 +0000
commitdf2ef05fd4f86877d037ac051fedb49df9fc6526 (patch)
tree147dc1c474f32ff32e689a80e3a5d4d4412ffe3c /src/intervals.h
parent96390def62500c26907fc291942a5af72dfd8799 (diff)
downloademacs-df2ef05fd4f86877d037ac051fedb49df9fc6526.tar.gz
(INTERVAL_WRITABLE_P): Fix backwards tests.
Diffstat (limited to 'src/intervals.h')
-rw-r--r--src/intervals.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/intervals.h b/src/intervals.h
index c724f31ede3..7a6c91064fd 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -140,12 +140,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
(! NULL_INTERVAL_P (i) && NILP (textget ((i)->plist, Qinvisible)))
/* Is this interval writable? Replace later with cache access */
-#define INTERVAL_WRITABLE_P(i) \
- (! NULL_INTERVAL_P (i) && NILP (textget ((i)->plist, Qread_only)) \
- && (NILP (Vinhibit_read_only) \
- || (CONSP (Vinhibit_read_only) \
- && !NILP (Fmemq (textget ((i)->plist, Qread_only), \
- Vinhibit_read_only)))))
+#define INTERVAL_WRITABLE_P(i) \
+ (! NULL_INTERVAL_P (i) \
+ && (NILP (textget ((i)->plist, Qread_only)) \
+ || ((CONSP (Vinhibit_read_only) \
+ ? !NILP (Fmemq (textget ((i)->plist, Qread_only), \
+ Vinhibit_read_only)) \
+ : !NILP (Vinhibit_read_only))))) \
/* Macros to tell whether insertions before or after this interval
should stick to it. */