]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fuser_login_name, Fuser_real_login_name):
authorRichard M. Stallman <rms@gnu.org>
Thu, 13 Oct 1994 18:21:25 +0000 (18:21 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 13 Oct 1994 18:21:25 +0000 (18:21 +0000)
Call init_editfns now if it was not done before.

src/editfns.c

index 5131fa17438b6aea291eec31593fb04165682f4f..85b0d0978aa1276674bfc81e7a49077966d09d33 100644 (file)
@@ -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;
 }