aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorChong Yidong <[email protected]>2007-06-13 00:03:28 +0000
committerChong Yidong <[email protected]>2007-06-13 00:03:28 +0000
commitd8869c65a3c39770c53e0b3294f64424932d241f (patch)
treefe041802cb7f5d44bc169357c2dc0039120aecbc /lisp/subr.el
parentd44446912ab257aa2c74bd87d52d5b1cfebabfc2 (diff)
(user-emacs-directory): New defconst.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index a05c1d1578..7ce7071f2f 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -2041,6 +2041,15 @@ On other systems, this variable is normally always nil.")
(put 'cl-assertion-failed 'error-conditions '(error))
(put 'cl-assertion-failed 'error-message "Assertion failed")
+(defconst user-emacs-directory
+ (if (eq system-type 'ms-dos)
+ ;; MS-DOS cannot have initial dot.
+ "~/_emacs.d/"
+ "~/.emacs.d/")
+ "Directory beneath which additional per-user Emacs-specific files are placed.
+Various programs in Emacs store information in this directory.
+Note that this should end with a directory separator.")
+
;;;; Misc. useful functions.