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:11:09 +0200 Message-ID: References: <86r6o91zmd.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 1182413542 15342 80.91.229.12 (21 Jun 2007 08:12:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2007 08:12:22 +0000 (UTC) Cc: stephen@xemacs.org, miles@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 21 10:12:20 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 1I1Hm3-0008SI-Cw for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2007 10:12:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Hm2-0006l0-S4 for ged-emacs-devel@m.gmane.org; Thu, 21 Jun 2007 04:12:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1Hl3-0006FD-8N for emacs-devel@gnu.org; Thu, 21 Jun 2007 04:11:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1Hl2-0006Ds-06 for emacs-devel@gnu.org; Thu, 21 Jun 2007 04:11:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1Hl1-0006Dl-Lk for emacs-devel@gnu.org; Thu, 21 Jun 2007 04:11:11 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I1Hl0-00038D-Vo for emacs-devel@gnu.org; Thu, 21 Jun 2007 04:11:11 -0400 Original-Received: by wx-out-0506.google.com with SMTP id h26so478260wxd for ; Thu, 21 Jun 2007 01:11:10 -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=qxuYWnjGaMPYe6ipJAbj8FM+1JFdWryBRWrN3LYJRPxujf3UrzKwboQYhxzfx8ICQoCUiu42zH6SMg+nTgFjIsLna7IFkMYRtxsyhQiRKn7tSVhb6azR0WI46Nw++Z6yccQ+enxK9l2slGSOVQQLpxVGf1wEWQqgkoRm3foY7m8= 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=sSBr+SezRTZbPhgJo/obJugHrMsiwG8B5kGhIk6JQOV4NjCDjn9tSUP+7WtUTSy82bH2WlTwVHngIr/oWZ0/SlDwQ+d7m7VljCNGzLqt1omqjuJ5Apn7psMSpmkZsfdzTtzskz2SP4HA2WX9u2UNjgYuwgQ+7W1QyAHnbyaktPw= Original-Received: by 10.90.63.16 with SMTP id l16mr1299310aga.1182413469946; Thu, 21 Jun 2007 01:11:09 -0700 (PDT) Original-Received: by 10.90.87.8 with HTTP; Thu, 21 Jun 2007 01:11:09 -0700 (PDT) In-Reply-To: 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:73502 Archived-At: On 6/21/07, Richard Stallman wrote: > What these files all have in common is that they are used > in special ways by Emacs. Which is so generic as to not mean anything IMO. > The function could be `locate-user-emacs-directory' The function does not locate a directory, but a file. It's intended to return the path for a filename, i.e., if a module wants to save its data in ".my-module" and your $HOME is /home/you, and `user-emacs-directory' is at default value, then (function-without-a-name ".my-module") will return "/home/you/.my-module" if it exists, else "/home/you/.emacs.d/.my-module" (creating /home/you/.emacs.d/ as needed). With the second optional argument NEW-NAME: (function-without-a-name ".my-module" "module-data") in the second case (when ~/.my-module does not exist) it will return "/home/you/.emacs.d/module-data". So locate-user-emacs-directory does not describe what the function does, and locate-user-emacs-file would be confusing: it does not return the path of the "emacs file" (presumable .emacs). Juanma