Function: user-real-login-name
user-real-login-name is a function defined in editfns.c.
Signature
(user-real-login-name)
Documentation
Return the name of the user's real uid, as a string.
This ignores the environment variables LOGNAME and USER, so it differs from
user-login-name(var)/user-login-name(fun) when running under su.
Probably introduced at or before Emacs version 14.
Source Code
// Defined in /usr/src/emacs/src/editfns.c
{
/* Set up the user name info if we didn't do it before.
(That can happen if Emacs is dumpable
but you decide to run `temacs -l loadup' and not dump. */
if (NILP (Vuser_login_name))
init_editfns ();
return Vuser_real_login_name;
}