Mercurial > emacs
diff src/intervals.h @ 3579:f6eeb536beda
(INTERVAL_WRITABLE_P): Fix backwards tests.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 08 Jun 1993 21:08:56 +0000 |
| parents | 2323f2160053 |
| children | 98eb9ca25031 |
line wrap: on
line diff
--- a/src/intervals.h Tue Jun 08 20:59:11 1993 +0000 +++ b/src/intervals.h Tue Jun 08 21:08:56 1993 +0000 @@ -140,12 +140,13 @@ (! 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. */
