]> git.eshelyaron.com Git - emacs.git/commitdiff
(user-emacs-directory): New defconst.
authorChong Yidong <cyd@stupidchicken.com>
Wed, 13 Jun 2007 00:03:28 +0000 (00:03 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 13 Jun 2007 00:03:28 +0000 (00:03 +0000)
lisp/subr.el

index a05c1d1578002f60d6fd6d754c5ab5f942f9f59b..7ce7071f2f7992efcabaa0b56f30b39b7e0cada8 100644 (file)
@@ -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.")
+
 \f
 ;;;; Misc. useful functions.