From: Philipp Stephani Date: Thu, 26 Dec 2019 09:58:55 +0000 (+0100) Subject: Simplify an example in the modules manual X-Git-Tag: emacs-28.0.90~7936 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c980d21ae11beb1eca1f3cb373cdddda8a580913;p=emacs.git 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. --- 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