From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Use .emacs.d in savehist.el Date: Sat, 29 Oct 2005 19:31:11 +0200 Message-ID: References: <87u0f69ae6.fsf-monnier+emacs@gnu.org> <87oe5e977f.fsf@mahaena.lrde> <87oe5dapcz.fsf@mahaena.lrde> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130607209 6643 80.91.229.2 (29 Oct 2005 17:33:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2005 17:33:29 +0000 (UTC) Cc: ihs_4664@yahoo.com, snogglethorpe@gmail.com, emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 29 19:33:27 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EVuZ1-00021B-CR for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 19:32:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVuZ0-0005T8-Iq for ged-emacs-devel@m.gmane.org; Sat, 29 Oct 2005 13:32:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVuYo-0005Pd-OV for emacs-devel@gnu.org; Sat, 29 Oct 2005 13:32:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVuYk-0005PC-Qi for emacs-devel@gnu.org; Sat, 29 Oct 2005 13:32:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVuYk-0005P9-Hf for emacs-devel@gnu.org; Sat, 29 Oct 2005 13:32:02 -0400 Original-Received: from [195.41.46.236] (helo=pfepb.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EVuYi-0002QU-OS; Sat, 29 Oct 2005 13:32:00 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepb.post.tele.dk (Postfix) with SMTP id 5EF575EE04F; Sat, 29 Oct 2005 19:31:58 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Sat, 29 Oct 2005 01:12:38 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:45093 Archived-At: "Richard M. Stallman" writes: > Though perhaps a standard function to do such name munging would be a > nice idea, e.g.: > > (user-customization-file-name BASE &optional DOTFILE) > > if .emacs.d doesn't exist => (concat "~/" (or DOTFILE (concat "." BASE))) > if .emacs.d does eixst => (concat "~/.emacs.d/" BASE) > > Then the savehist example would be (user-customization-file-name "savehist"), > and .emacs would be (user-customization-file-name "init.el" ".emacs") > > That does sound convenient. Would you like to do it? I like this too, but functionality should be: If DOTFILE non-nil and ~/DOTFILE exists, use ~/DOTFILE, else [as above]. Otherwise, some old DOTFILE will suddenly "disappear" if the user later creates .emacs.d -- Kim F. Storm http://www.cua.dk