Function: funcall-interactively

funcall-interactively is a function defined in callint.c.

Signature

(funcall-interactively FUNCTION &rest ARGUMENTS)

Documentation

Like funcall but marks the call as interactive.

I.e. arrange that within the called function called-interactively-p will return non-nil.

Probably introduced at or before Emacs version 25.1.

Source Code

// Defined in /usr/src/emacs/src/callint.c
{
  ptrdiff_t speccount = SPECPDL_INDEX ();
  temporarily_switch_to_single_kboard (NULL);

  /* Nothing special to do here, all the work is inside
     `called-interactively-p'.  Which will look for us as a marker in the
     backtrace.  */
  return unbind_to (speccount, Ffuncall (nargs, args));
}