diff options
| author | Richard M. Stallman | 1993-06-07 05:28:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-07 05:28:42 +0000 |
| commit | 9207deb2b984aa202f35bd3598b39eb093520514 (patch) | |
| tree | 7d592a7ffdf705cc7ef7669867703994fae13e29 /src | |
| parent | 0a4469c908bfdb1b1b503cc66dc8540e0fb92b33 (diff) | |
| download | emacs-9207deb2b984aa202f35bd3598b39eb093520514.tar.gz emacs-9207deb2b984aa202f35bd3598b39eb093520514.zip | |
(INTERVAL_VISIBLE_P): Use textget.
(INTERVAL_WRITABLE_P): Use textget.
Check Vinhibit_read_only.
Diffstat (limited to 'src')
| -rw-r--r-- | src/intervals.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/intervals.h b/src/intervals.h index e7ebb8f5cd6..c724f31ede3 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -137,11 +137,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 137 | 137 | ||
| 138 | /* Is this interval visible? Replace later with cache access */ | 138 | /* Is this interval visible? Replace later with cache access */ |
| 139 | #define INTERVAL_VISIBLE_P(i) \ | 139 | #define INTERVAL_VISIBLE_P(i) \ |
| 140 | (! NULL_INTERVAL_P (i) && NILP (Fmemq (Qinvisible, (i)->plist))) | 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 (Fmemq (Qread_only, (i)->plist))) | 144 | (! NULL_INTERVAL_P (i) && NILP (textget ((i)->plist, Qread_only)) \ |
| 145 | && (NILP (Vinhibit_read_only) \ | ||
| 146 | || (CONSP (Vinhibit_read_only) \ | ||
| 147 | && !NILP (Fmemq (textget ((i)->plist, Qread_only), \ | ||
| 148 | Vinhibit_read_only))))) | ||
| 145 | 149 | ||
| 146 | /* Macros to tell whether insertions before or after this interval | 150 | /* Macros to tell whether insertions before or after this interval |
| 147 | should stick to it. */ | 151 | should stick to it. */ |