From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Don't concat directories to file names Date: Thu, 21 Jun 2007 10:46:18 +0200 Message-ID: References: <86r6o91zmd.fsf@lola.quinscape.zz> <86odj9n2aw.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182415588 22393 80.91.229.12 (21 Jun 2007 08:46:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2007 08:46:28 +0000 (UTC) Cc: stephen@xemacs.org, emacs-devel@gnu.org, rms@gnu.org, monnier@iro.umontreal.ca, miles@gnu.org To: "David Kastrup" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 21 10:46:26 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I1IJ7-00072L-Kn for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2007 10:46:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1IJ7-0005aq-2E for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2007 04:46:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1IJ3-0005Yx-Aa for emacs-devel@gnu.org; Thu, 21 Jun 2007 04:46:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1IJ1-0005XW-NE for emacs-devel@gnu.org; Thu, 21 Jun 2007 04:46:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1IJ1-0005XT-IQ for emacs-devel@gnu.org; Thu, 21 Jun 2007 04:46:19 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.230]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I1IJ0-0001Ho-VD for emacs-devel@gnu.org; Thu, 21 Jun 2007 04:46:19 -0400 Original-Received: by wx-out-0506.google.com with SMTP id h26so485507wxd for ; Thu, 21 Jun 2007 01:46:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fwM2ww4zQHdiPtac0nA4/eU+5Zl2KAq1nUtQxiCDwyTMkqjgT0oIe7MbwxUEn5gbXOMezODpeG+WUJsXZWqqM4RI4iEc4kPhURrkTV/PtGHNT51xfMgegwTsVKxckcoL6DqQgL+228ypYJat+3Z7jK+t//0vBgAcpivvqPb451A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aioEReBFP2DYyrbnXGImzCrTDOCLYOK/qMQRe6b7wHyB3lUe8awe/o9vI7Dy16wlBT3Xq7ekbQYdVldGwqhIq/Wq+tUqB+fLv3+lWaBMOCR3qRPUNIeeVD6tk5H4NYHuPE5qe3Y2witlfOzLuvZ4BpSIpjbEDNlqmI23XKOLU8o= Original-Received: by 10.90.106.11 with SMTP id e11mr1309150agc.1182415578236; Thu, 21 Jun 2007 01:46:18 -0700 (PDT) Original-Received: by 10.90.87.8 with HTTP; Thu, 21 Jun 2007 01:46:18 -0700 (PDT) In-Reply-To: <86odj9n2aw.fsf@lola.quinscape.zz> Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:73506 Archived-At: On 6/21/07, David Kastrup wrote: > locate-user-file ? Fine by me. Then we could name the variable `user-files-directory'... I think we all can agree that directory is going to contain files :) (but I still like user-data-directory much, much more.) > locate-user-emacs-file could have the file name > argument optional, defaulting to .emacs/init.el or something. I purposely didn't care about .emacs in my function, though you could get the basic functionality with (function-without-a-name ".emacs" "init.el") because the .emacs case is quite specific. On MS-DOS/Windows, NAME has four possible values and can be found in at least three places. You could generalize the function-without-a-name to accept a predicate or something, but it's not worth the complexity just for this case. Juanma