diff options
| author | Mike Brumlow <mbrumlow@roblox.com> | 2020-03-20 00:23:54 -0700 |
|---|---|---|
| committer | Mike Brumlow <mbrumlow@roblox.com> | 2020-03-20 00:23:54 -0700 |
| commit | a0deadc8d11db5d829e70309fc7b5660d83bf13f (patch) | |
| tree | b854ed5c4805fd767167a9ef0a6c3d76c6385354 /elisp.c | |
| parent | 3458714fb73f97b82ea34947fb7bb0cfd440ea66 (diff) | |
Its late, I should not be doing this...
Adding missing update.
Diffstat (limited to 'elisp.c')
| -rw-r--r-- | elisp.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -49,6 +49,16 @@ void put_text_property(emacs_env *env, emacs_value string, emacs_value property, (emacs_value[]){start, end, property, value, string}); } +void add_text_properties(emacs_env *env, emacs_value string, + emacs_value property) { + emacs_value start = env->make_integer(env, 0); + emacs_value end = length(env, string); + + env->funcall(env, Fadd_text_properties, 4, + (emacs_value[]){start, end, property, string}); +} + + void erase_buffer(emacs_env *env) { env->funcall(env, Ferase_buffer, 0, NULL); } void insert(emacs_env *env, emacs_value string) { |
