Commit c980d21a authored by Philipp Stephani's avatar Philipp Stephani

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.
parent 719ad593
Pipeline #4400 failed with stage
in 55 minutes and 28 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment