Mercurial > emacs
changeset 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 | e0826cb2833b |
children | 8223f1bf078f |
files | src/intervals.h |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
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. */