Go to the first, previous, next, last section, table of contents.


User Identification

Variable: user-mail-address
This holds the nominal email address of the user who is using Emacs. Emacs normally sets this variable to a default value after reading your init files, but not if you have already set it. So you can set the variable to some other value in your `~/.emacs' file if you do not want to use the default value.

Function: user-login-name &optional uid
If you don't specify uid, this function returns the name under which the user is logged in. If the environment variable LOGNAME is set, that value is used. Otherwise, if the environment variable USER is set, that value is used. Otherwise, the value is based on the effective UID, not the real UID.

If you specify uid, the value is the user name that corresponds to uid (which should be an integer).

(user-login-name)
     => "lewis"

Function: user-real-login-name
This function returns the user name corresponding to Emacs's real UID. This ignores the effective UID and ignores the environment variables LOGNAME and USER.

Function: user-full-name
This function returns the full name of the user.

(user-full-name)
     => "Bil Lewis"

The symbols user-login-name, user-real-login-name and user-full-name are variables as well as functions. The functions return the same values that the variables hold. These variables allow you to "fake out" Emacs by telling the functions what to return. The variables are also useful for constructing frame titles (see section Frame Titles).

Function: user-real-uid
This function returns the real UID of the user.

(user-real-uid)
     => 19

Function: user-uid
This function returns the effective UID of the user.


Go to the first, previous, next, last section, table of contents.