From c980d21ae11beb1eca1f3cb373cdddda8a580913 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Thu, 26 Dec 2019 10:58:55 +0100 Subject: [PATCH] Simplify an example in the modules manual * doc/lispref/internals.texi (Module Misc): Simplify example for how to call 'intern'. There's no need to pass the optional argument explicitly. --- doc/lispref/internals.texi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi index 02180c72a52..896738caff9 100644 --- a/doc/lispref/internals.texi +++ b/doc/lispref/internals.texi @@ -1912,8 +1912,7 @@ calling the more powerful Emacs @code{intern} function emacs_value fintern = env->intern (env, "intern"); emacs_value sym_name = env->make_string (env, name_str, strlen (name_str)); -emacs_value intern_args[] = @{ sym_name, env->intern (env, "nil") @}; -emacs_value symbol = env->funcall (env, fintern, 2, intern_args); +emacs_value symbol = env->funcall (env, fintern, 1, &sym_name); @end example @end deftypefn -- 2.39.2