aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1999-12-15 00:21:42 +0000
committerKenichi Handa1999-12-15 00:21:42 +0000
commitabc2f676d6750570396dfd155a3d4df48bd48769 (patch)
tree138306d59a2fc20bfdc9746923448eb93d435ffa /src
parentc7cba11dec7232f8598a97001e6b4d52d7701849 (diff)
downloademacs-abc2f676d6750570396dfd155a3d4df48bd48769.tar.gz
emacs-abc2f676d6750570396dfd155a3d4df48bd48769.zip
(Vtext_property_default_nonsticky): New variable
(syms_of_textprop): Declare it as a Lisp variable.
Diffstat (limited to 'src')
-rw-r--r--src/textprop.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 8b405a2bb44..fb750016d6c 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -69,6 +69,7 @@ Lisp_Object Qfront_sticky, Qrear_nonsticky;
69 69
70Lisp_Object Vinhibit_point_motion_hooks; 70Lisp_Object Vinhibit_point_motion_hooks;
71Lisp_Object Vdefault_text_properties; 71Lisp_Object Vdefault_text_properties;
72Lisp_Object Vtext_property_default_nonsticky;
72 73
73/* verify_interval_modification saves insertion hooks here 74/* verify_interval_modification saves insertion hooks here
74 to be run later by report_interval_modification. */ 75 to be run later by report_interval_modification. */
@@ -1830,6 +1831,17 @@ character that does not have its own value for that property.");
1830This also inhibits the use of the `intangible' text property."); 1831This also inhibits the use of the `intangible' text property.");
1831 Vinhibit_point_motion_hooks = Qnil; 1832 Vinhibit_point_motion_hooks = Qnil;
1832 1833
1834 DEFVAR_LISP ("text-property-default-nonsticky",
1835 &Vtext_property_default_nonsticky,
1836 "Alist of properties vs the corresponding non-stickinesses.\n\
1837Each element has the form (PROPERTY . NONSTICKINESS).\n\
1838\n\
1839If a character in a buffer has PROPERTY, new text inserted adjacent to\n\
1840the character doesn't inherit PROPERTY if NONSTICKINESS is non-nil,\n\
1841inherits it if NONSTICKINESS is nil. The front-sticky and\n\
1842rear-nonsticky properties of the character overrides NONSTICKINESS.");
1843 Vtext_property_default_nonsticky = Qnil;
1844
1833 staticpro (&interval_insert_behind_hooks); 1845 staticpro (&interval_insert_behind_hooks);
1834 staticpro (&interval_insert_in_front_hooks); 1846 staticpro (&interval_insert_in_front_hooks);
1835 interval_insert_behind_hooks = Qnil; 1847 interval_insert_behind_hooks = Qnil;