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.
This commit is contained in:
parent
719ad59387
commit
c980d21ae1
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue