aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-08 21:08:56 +0000
committerRichard M. Stallman1993-06-08 21:08:56 +0000
commit5f8a398a50ad9460557543a2797b24efbbe62203 (patch)
tree108a4d9d00a6a8b209f2dda9606ab8cfdaf0ba68 /src
parent798c05c3b645c2a83f4aa8f40a8cb932666db4de (diff)
downloademacs-5f8a398a50ad9460557543a2797b24efbbe62203.tar.gz
emacs-5f8a398a50ad9460557543a2797b24efbbe62203.zip
(INTERVAL_WRITABLE_P): Fix backwards tests.
Diffstat (limited to 'src')
-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. */
140 (! NULL_INTERVAL_P (i) && NILP (textget ((i)->plist, Qinvisible))) 140 (! NULL_INTERVAL_P (i) && NILP (textget ((i)->plist, Qinvisible)))
141 141
142/* Is this interval writable? Replace later with cache access */ 142/* Is this interval writable? Replace later with cache access */
143#define INTERVAL_WRITABLE_P(i) \ 143#define INTERVAL_WRITABLE_P(i) \
144 (! NULL_INTERVAL_P (i) && NILP (textget ((i)->plist, Qread_only)) \ 144 (! NULL_INTERVAL_P (i) \
145 && (NILP (Vinhibit_read_only) \ 145 && (NILP (textget ((i)->plist, Qread_only)) \
146 || (CONSP (Vinhibit_read_only) \ 146 || ((CONSP (Vinhibit_read_only) \
147 && !NILP (Fmemq (textget ((i)->plist, Qread_only), \ 147 ? !NILP (Fmemq (textget ((i)->plist, Qread_only), \
148 Vinhibit_read_only))))) 148 Vinhibit_read_only)) \
149 : !NILP (Vinhibit_read_only))))) \
149 150
150/* Macros to tell whether insertions before or after this interval 151/* Macros to tell whether insertions before or after this interval
151 should stick to it. */ 152 should stick to it. */