diff options
| author | Colin Walters | 2002-06-08 20:24:35 +0000 |
|---|---|---|
| committer | Colin Walters | 2002-06-08 20:24:35 +0000 |
| commit | 49d110a8aa34409f7f52eaed4975892d241a7ce6 (patch) | |
| tree | 3823eb146ecbe984297da1a07584ffb62b026ed4 /src | |
| parent | 515a9a0f466acd4cd36c5a960d8525721e65c9fc (diff) | |
| download | emacs-49d110a8aa34409f7f52eaed4975892d241a7ce6.tar.gz emacs-49d110a8aa34409f7f52eaed4975892d241a7ce6.zip | |
(Vchar_property_alias_alist): New variable.
(syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
Diffstat (limited to 'src')
| -rw-r--r-- | src/textprop.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c index 401e26f1a30..f6b7dab421e 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -70,6 +70,7 @@ Lisp_Object Qfront_sticky, Qrear_nonsticky; | |||
| 70 | 70 | ||
| 71 | Lisp_Object Vinhibit_point_motion_hooks; | 71 | Lisp_Object Vinhibit_point_motion_hooks; |
| 72 | Lisp_Object Vdefault_text_properties; | 72 | Lisp_Object Vdefault_text_properties; |
| 73 | Lisp_Object Vchar_property_alias_alist; | ||
| 73 | Lisp_Object Vtext_property_default_nonsticky; | 74 | Lisp_Object Vtext_property_default_nonsticky; |
| 74 | 75 | ||
| 75 | /* verify_interval_modification saves insertion hooks here | 76 | /* verify_interval_modification saves insertion hooks here |
| @@ -2177,6 +2178,15 @@ The value of a property in this list is seen as the value for every | |||
| 2177 | character that does not have its own value for that property. */); | 2178 | character that does not have its own value for that property. */); |
| 2178 | Vdefault_text_properties = Qnil; | 2179 | Vdefault_text_properties = Qnil; |
| 2179 | 2180 | ||
| 2181 | DEFVAR_LISP ("char-property-alias-alist", &Vchar_property_alias_alist, | ||
| 2182 | doc: /* Alist of alternative properties for properties without a value. | ||
| 2183 | Each element should look like (PROPERTY ALTERNATIVE1 ALTERNATIVE2...). | ||
| 2184 | If a piece of text has no direct value for a particular property, then | ||
| 2185 | this alist is consulted. If that property appears in the alist, then | ||
| 2186 | the first non-nil value from the associated alternative properties is | ||
| 2187 | returned. */); | ||
| 2188 | Vchar_property_alias_alist = Qnil; | ||
| 2189 | |||
| 2180 | DEFVAR_LISP ("inhibit-point-motion-hooks", &Vinhibit_point_motion_hooks, | 2190 | DEFVAR_LISP ("inhibit-point-motion-hooks", &Vinhibit_point_motion_hooks, |
| 2181 | doc: /* If non-nil, don't run `point-left' and `point-entered' text properties. | 2191 | doc: /* If non-nil, don't run `point-left' and `point-entered' text properties. |
| 2182 | This also inhibits the use of the `intangible' text property. */); | 2192 | This also inhibits the use of the `intangible' text property. */); |