aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2024-05-02 09:50:37 +0300
committerEli Zaretskii2024-05-02 09:50:37 +0300
commit7d15d17353c02b0ded3671ecfaf2f4a8c19d43c1 (patch)
treebd136bfc31cf8980a520f096a7c8b22b6b2566da
parent0023891e84285c2ea2a8029f479135f792c9d1e9 (diff)
downloademacs-7d15d17353c02b0ded3671ecfaf2f4a8c19d43c1.tar.gz
emacs-7d15d17353c02b0ded3671ecfaf2f4a8c19d43c1.zip
; Improve commentary in intervals.h
* src/intervals.h (INTERVAL_GENERALLY_WRITABLE_P) (INTERVAL_EXPRESSLY_WRITABLE_P): Clarify commentary.
-rw-r--r--src/intervals.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/intervals.h b/src/intervals.h
index 4ddb7f12b92..5718874543a 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -204,16 +204,16 @@ set_interval_plist (INTERVAL i, Lisp_Object plist)
204#define INTERVAL_VISIBLE_P(i) \ 204#define INTERVAL_VISIBLE_P(i) \
205 (i && NILP (textget ((i)->plist, Qinvisible))) 205 (i && NILP (textget ((i)->plist, Qinvisible)))
206 206
207/* Is this interval writable by virtue of not being marked read-only, or 207/* Is this interval writable by virtue of not being marked read-only
208 a general value of Vinhibit_read_only (which is read from the value 208 by the 'read-only' property (passed via RO), or due to the general
209 provided as RO)? Replace later with cache access. */ 209 value of Vinhibit_read_only? Replace later with cache access. */
210#define INTERVAL_GENERALLY_WRITABLE_P(i, ro) \ 210#define INTERVAL_GENERALLY_WRITABLE_P(i, ro) \
211 (NILP (ro) || (!NILP (Vinhibit_read_only) \ 211 (NILP (ro) || (!NILP (Vinhibit_read_only) \
212 && !CONSP (Vinhibit_read_only))) 212 && !CONSP (Vinhibit_read_only)))
213 213
214/* Is this interval writable by virtue of an explicit inhibit-read-only 214/* Is this interval writable by virtue of its explicit
215 property, or the specific presence of its Qread_only property (which 215 'inhibit-read-only' property, or due to the presence of its
216 is read from the value provided as RO) in Vinhibit_read_only? */ 216 'read-only' property (passed via RO) in Vinhibit_read_only list? */
217#define INTERVAL_EXPRESSLY_WRITABLE_P(i, ro) \ 217#define INTERVAL_EXPRESSLY_WRITABLE_P(i, ro) \
218 (!NILP (textget ((i)->plist, Qinhibit_read_only)) \ 218 (!NILP (textget ((i)->plist, Qinhibit_read_only)) \
219 || (!NILP (ro) \ 219 || (!NILP (ro) \