From: Chong Yidong Date: Wed, 13 Jun 2007 00:05:47 +0000 (+0000) Subject: (savehist-file): Use user-emacs-directory. X-Git-Tag: emacs-pretest-23.0.90~12331 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e3af1e5d00b695917837b5ed4a7a07ba8160dbdf;p=emacs.git (savehist-file): Use user-emacs-directory. --- diff --git a/lisp/savehist.el b/lisp/savehist.el index 9555bce9bd4..9343fc2ccb1 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el @@ -101,8 +101,8 @@ minibuffer histories, such as `compile-command' or `kill-ring'." (cond ;; Backward compatibility with previous versions of savehist. ((file-exists-p "~/.emacs-history") "~/.emacs-history") - ((and (not (featurep 'xemacs)) (file-directory-p "~/.emacs.d/")) - "~/.emacs.d/history") + ((and (not (featurep 'xemacs)) (file-directory-p user-emacs-directory)) + (concat user-emacs-directory "history")) ((and (featurep 'xemacs) (file-directory-p "~/.xemacs/")) "~/.xemacs/history") ;; For users without `~/.emacs.d/' or `~/.xemacs/'.