diff options
| author | jixiuf <jixiuf@qq.com> | 2019-08-11 12:04:10 +0800 |
|---|---|---|
| committer | jixiuf <jixiuf@qq.com> | 2019-08-11 12:05:30 +0800 |
| commit | 894f306554ef358eee977e111041e7a9f1f2e2e5 (patch) | |
| tree | 17b0d0c3233f4475d3162bd57360baa42caebf26 /elisp.c | |
| parent | cc670d74851db9ec975aef7c3ada61236bfc174f (diff) | |
rename string_length to length
Diffstat (limited to 'elisp.c')
| -rw-r--r-- | elisp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ int string_bytes(emacs_env *env, emacs_value string) { return size; } -emacs_value string_length(emacs_env *env, emacs_value string) { +emacs_value length(emacs_env *env, emacs_value string) { return env->funcall(env, Flength, 1, (emacs_value[]){string}); } @@ -39,7 +39,7 @@ emacs_value list(emacs_env *env, emacs_value elements[], ptrdiff_t len) { void put_text_property(emacs_env *env, emacs_value string, emacs_value property, emacs_value value) { emacs_value start = env->make_integer(env, 0); - emacs_value end = string_length(env, string); + emacs_value end = length(env, string); env->funcall(env, Fput_text_property, 5, (emacs_value[]){start, end, property, value, string}); |
