aboutsummaryrefslogtreecommitdiff
path: root/elisp.c
diff options
context:
space:
mode:
authorMike Brumlow <mbrumlow@roblox.com>2020-03-20 00:23:54 -0700
committerMike Brumlow <mbrumlow@roblox.com>2020-03-20 00:23:54 -0700
commita0deadc8d11db5d829e70309fc7b5660d83bf13f (patch)
treeb854ed5c4805fd767167a9ef0a6c3d76c6385354 /elisp.c
parent3458714fb73f97b82ea34947fb7bb0cfd440ea66 (diff)
Its late, I should not be doing this...
Adding missing update.
Diffstat (limited to 'elisp.c')
-rw-r--r--elisp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/elisp.c b/elisp.c
index be61b4a..61b7528 100644
--- a/elisp.c
+++ b/elisp.c
@@ -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) {