diff options
| author | Eli Zaretskii | 2025-02-22 18:04:04 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-02-22 18:04:04 +0200 |
| commit | 827a91dbf3a45d6c3c620545b5e620ce76e44bb2 (patch) | |
| tree | b45edd0381c08990766b9ac2b59918a20e6b24f0 /src | |
| parent | 8b6797fa01bf8c8c64bd1f72c1e2475bf2331ad9 (diff) | |
| download | emacs-827a91dbf3a45d6c3c620545b5e620ce76e44bb2.tar.gz emacs-827a91dbf3a45d6c3c620545b5e620ce76e44bb2.zip | |
Make 'text-property-default-nonsticky' buffer-local when set
* src/textprop.c (syms_of_textprop)
<text-property-default-nonsticky>: Make buffer-local when set.
(Bug#76445)
* etc/symbol-releases.eld: Add text-property-default-nonsticky.
* etc/NEWS:
* doc/lispref/text.texi (Sticky Properties): Document the change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/textprop.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c index 30c26ce4809..8fdaafccede 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -2427,6 +2427,7 @@ inherits it if NONSTICKINESS is nil. The `front-sticky' and | |||
| 2427 | by default. */ | 2427 | by default. */ |
| 2428 | Vtext_property_default_nonsticky | 2428 | Vtext_property_default_nonsticky |
| 2429 | = list2 (Fcons (Qsyntax_table, Qt), Fcons (Qdisplay, Qt)); | 2429 | = list2 (Fcons (Qsyntax_table, Qt), Fcons (Qdisplay, Qt)); |
| 2430 | Fmake_variable_buffer_local (Qtext_property_default_nonsticky); | ||
| 2430 | 2431 | ||
| 2431 | interval_insert_behind_hooks = Qnil; | 2432 | interval_insert_behind_hooks = Qnil; |
| 2432 | interval_insert_in_front_hooks = Qnil; | 2433 | interval_insert_in_front_hooks = Qnil; |
| @@ -2444,6 +2445,7 @@ inherits it if NONSTICKINESS is nil. The `front-sticky' and | |||
| 2444 | DEFSYM (Qlocal_map, "local-map"); | 2445 | DEFSYM (Qlocal_map, "local-map"); |
| 2445 | DEFSYM (Qfront_sticky, "front-sticky"); | 2446 | DEFSYM (Qfront_sticky, "front-sticky"); |
| 2446 | DEFSYM (Qrear_nonsticky, "rear-nonsticky"); | 2447 | DEFSYM (Qrear_nonsticky, "rear-nonsticky"); |
| 2448 | DEFSYM (Qtext_property_default_nonsticky, "text-property-default-nonsticky"); | ||
| 2447 | DEFSYM (Qmouse_face, "mouse-face"); | 2449 | DEFSYM (Qmouse_face, "mouse-face"); |
| 2448 | DEFSYM (Qminibuffer_prompt, "minibuffer-prompt"); | 2450 | DEFSYM (Qminibuffer_prompt, "minibuffer-prompt"); |
| 2449 | 2451 | ||