]> git.eshelyaron.com Git - emacs.git/commitdiff
(syms_of_editfns): Make Vsystem_name and Vuser...name lisp variables again.
authorKarl Heuer <kwzh@gnu.org>
Fri, 16 Sep 1994 00:41:59 +0000 (00:41 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 16 Sep 1994 00:41:59 +0000 (00:41 +0000)
src/editfns.c

index 46b5d772c4252d64cde4de3a4e4c3b591acf2e71..554df33b50334b9a66ec3466fc70dd5f324cbbf6 100644 (file)
@@ -1956,10 +1956,17 @@ Transposing beyond buffer boundaries is an error.")
 void
 syms_of_editfns ()
 {
-  staticpro (&Vuser_name);
-  staticpro (&Vuser_full_name);
-  staticpro (&Vuser_real_name);
-  staticpro (&Vsystem_name);
+  DEFVAR_LISP ("system-name", &Vsystem_name,
+              "The name of the machine Emacs is running on.");
+  
+  DEFVAR_LISP ("user-full-name", &Vuser_full_name,
+              "The full name of the user logged in.");
+
+  DEFVAR_LISP ("user-name", &Vuser_name,
+              "The user's name, taken from environment variables if possible.");
+
+  DEFVAR_LISP ("user-real-name", &Vuser_real_name,
+              "The user's name, based upon the real uid only.");
 
   defsubr (&Schar_equal);
   defsubr (&Sgoto_char);