mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-18 17:01:01 -08:00
(Fuser_login_name, Fuser_real_login_name):
Call init_editfns now if it was not done before.
This commit is contained in:
parent
c561a0cbfd
commit
f8a0e364da
1 changed files with 10 additions and 0 deletions
|
|
@ -490,6 +490,11 @@ Also, if the environment variable LOGNAME or USER is set,\n\
|
|||
that determines the value of this function.")
|
||||
()
|
||||
{
|
||||
/* 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 (INTEGERP (Vuser_name))
|
||||
init_editfns ();
|
||||
return Vuser_name;
|
||||
}
|
||||
|
||||
|
|
@ -500,6 +505,11 @@ This ignores the environment variables LOGNAME and USER, so it differs from\n\
|
|||
`user-login-name' when running under `su'.")
|
||||
()
|
||||
{
|
||||
/* 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 (INTEGERP (Vuser_name))
|
||||
init_editfns ();
|
||||
return Vuser_real_name;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue