Mercurial > hg > xemacs-beta
comparison man/lispref/os.texi @ 294:4b85ae5eabfb r21-0b45
Import from CVS: tag r21-0b45
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:38:01 +0200 |
parents | c9fe270a4101 |
children | 341dac730539 |
comparison
equal
deleted
inserted
replaced
293:403535bfea94 | 294:4b85ae5eabfb |
---|---|
854 @end example | 854 @end example |
855 @end defun | 855 @end defun |
856 | 856 |
857 @defun user-uid | 857 @defun user-uid |
858 This function returns the effective @sc{uid} of the user. | 858 This function returns the effective @sc{uid} of the user. |
859 @end defun | |
860 | |
861 @defun user-home-directory | |
862 This function returns the ``@code{HOME}'' directory of the user, and is | |
863 intended to replace occurrences of ``@code{(getenv "HOME")}''. Under | |
864 Unix systems, the following is done: | |
865 | |
866 @enumerate | |
867 @item | |
868 Return the value of ``@code{(getenv "HOME")}'', if set. | |
869 | |
870 @item | |
871 Return ``/'', as a fallback, but issue a warning. (Future versions of | |
872 XEmacs will also attempt to lookup the @code{HOME} directory via | |
873 @code{getpwent()}, but this has not yet been implemented.) | |
874 @end enumerate | |
875 | |
876 Under MS Windows, this is done: | |
877 | |
878 @enumerate | |
879 @item | |
880 Return the value of ``@code{(getenv "HOME")}'', if set. | |
881 | |
882 @item | |
883 If the environment variables @code{HOMEDRIVE} and @code{HOMEDIR} are | |
884 both set, return the concatenation (the following description uses MS | |
885 Windows environment variable substitution syntax): | |
886 @code{%HOMEDRIVE%%HOMEDIR%}. | |
887 | |
888 @item | |
889 Return ``C:\'', as a fallback, but issue a warning. | |
890 @end enumerate | |
859 @end defun | 891 @end defun |
860 | 892 |
861 @node Time of Day | 893 @node Time of Day |
862 @section Time of Day | 894 @section Time of Day |
863 | 895 |