changeset 81338:62535fec6ee1

(user-emacs-directory): New defconst.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 13 Jun 2007 00:03:28 +0000
parents 6bfd25f73683
children d8ee6aceb564
files lisp/subr.el
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Tue Jun 12 23:58:38 2007 +0000
+++ b/lisp/subr.el	Wed Jun 13 00:03:28 2007 +0000
@@ -2041,6 +2041,15 @@
 (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.