aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-13 18:21:25 +0000
committerRichard M. Stallman1994-10-13 18:21:25 +0000
commitf8a0e364daf88d3ebf5e41c2977e2219f4b2e97d (patch)
tree409cb410ad173c83bf3b07da166f6cb33d79a066 /src
parentc561a0cbfd4f1c800cb113905b43d08ce36d9883 (diff)
downloademacs-f8a0e364daf88d3ebf5e41c2977e2219f4b2e97d.tar.gz
emacs-f8a0e364daf88d3ebf5e41c2977e2219f4b2e97d.zip
(Fuser_login_name, Fuser_real_login_name):
Call init_editfns now if it was not done before.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 5131fa17438..85b0d0978aa 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -490,6 +490,11 @@ Also, if the environment variable LOGNAME or USER is set,\n\
490that determines the value of this function.") 490that determines the value of this function.")
491 () 491 ()
492{ 492{
493 /* Set up the user name info if we didn't do it before.
494 (That can happen if Emacs is dumpable
495 but you decide to run `temacs -l loadup' and not dump. */
496 if (INTEGERP (Vuser_name))
497 init_editfns ();
493 return Vuser_name; 498 return Vuser_name;
494} 499}
495 500
@@ -500,6 +505,11 @@ This ignores the environment variables LOGNAME and USER, so it differs from\n\
500`user-login-name' when running under `su'.") 505`user-login-name' when running under `su'.")
501 () 506 ()
502{ 507{
508 /* Set up the user name info if we didn't do it before.
509 (That can happen if Emacs is dumpable
510 but you decide to run `temacs -l loadup' and not dump. */
511 if (INTEGERP (Vuser_name))
512 init_editfns ();
503 return Vuser_real_name; 513 return Vuser_real_name;
504} 514}
505 515