unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Use .emacs.d in savehist.el
@ 2005-10-24 15:58 Stefan Monnier
  2005-10-24 21:22 ` Kim F. Storm
                   ` (3 more replies)
  0 siblings, 4 replies; 36+ messages in thread
From: Stefan Monnier @ 2005-10-24 15:58 UTC (permalink / raw)
  Cc: Hrvoje Niksic

Any objection to the patch below?


        Stefan


Index: lisp/savehist.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/savehist.el,v
retrieving revision 1.7
diff -u -r1.7 savehist.el
--- lisp/savehist.el	22 Oct 2005 17:45:50 -0000	1.7
+++ lisp/savehist.el	24 Oct 2005 15:55:38 -0000
@@ -110,7 +73,13 @@
   :type '(repeat (symbol :tag "Variable"))
   :group 'savehist)
 
-(defcustom savehist-file "~/.emacs-history"
+(defcustom savehist-file
+  (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")
+   (t "~/.emacs-history"))
-  "*File name to save minibuffer history to.
+  "File name to save minibuffer history to.
 The minibuffer history is a series of Lisp expressions, which should be
 loaded using `savehist-load' from your .emacs.  See `savehist-load' for

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2005-11-02 15:54 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-24 15:58 Use .emacs.d in savehist.el Stefan Monnier
2005-10-24 21:22 ` Kim F. Storm
2005-10-25 20:27   ` Richard M. Stallman
2005-10-25  9:30 ` Hrvoje Niksic
2005-10-25 14:30   ` David Kastrup
2005-10-25 14:51   ` Stefan Monnier
2005-10-25 19:13     ` Hrvoje Niksic
     [not found] ` <87oe5e977f.fsf@mahaena.lrde>
2005-10-25  9:59   ` Michael Cadilhac
2005-10-25 14:54     ` Stefan Monnier
2005-10-26 16:46       ` Richard M. Stallman
2005-10-26 23:28         ` Miles Bader
2005-10-27  3:58           ` Richard M. Stallman
2005-10-27 16:53             ` Kevin Rodgers
2005-10-28 16:19               ` Richard M. Stallman
2005-10-28 20:16                 ` Miles Bader
2005-10-29  5:12                   ` Richard M. Stallman
2005-10-29 17:31                     ` Kim F. Storm
2005-10-30  0:03                       ` Miles Bader
2005-10-29  3:51             ` Chong Yidong
2005-10-29 20:33               ` Richard M. Stallman
2005-10-30  4:00                 ` Chong Yidong
2005-10-30  4:30                   ` Miles Bader
2005-10-30 13:59                     ` Chong Yidong
2005-10-31  1:14                       ` Richard M. Stallman
2005-10-31  2:29                         ` Chong Yidong
2005-11-01  2:14                           ` Richard M. Stallman
2005-11-01  3:43                             ` Chong Yidong
2005-11-01  5:12                               ` Stefan Monnier
2005-11-01 12:54                                 ` Chong Yidong
2005-11-02 10:27                                   ` Richard M. Stallman
2005-11-02 15:54                                     ` Stefan Monnier
2005-11-02 10:26                                 ` Richard M. Stallman
2005-11-02 10:26                               ` Richard M. Stallman
2005-10-27  9:16         ` Kim F. Storm
2005-10-30  4:07       ` Chong Yidong
2005-10-25 15:58 ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).