From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: abc Newsgroups: gmane.emacs.help Subject: Knowing the name of a file from the file itself Date: Mon, 20 Oct 2008 16:04:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: <47ec3b12-d424-4b0f-8a90-d6ee3ca2add8@m73g2000hsh.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224560650 3332 80.91.229.12 (21 Oct 2008 03:44:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 03:44:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 05:45:10 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ks8BB-0000y5-RB for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2008 05:45:09 +0200 Original-Received: from localhost ([127.0.0.1]:59088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ks8A6-0003Vt-6v for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Oct 2008 23:44:02 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m73g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 80.167.171.121 Original-X-Trace: posting.google.com 1224543870 30537 127.0.0.1 (20 Oct 2008 23:04:30 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 20 Oct 2008 23:04:30 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000hsh.googlegroups.com; posting-host=80.167.171.121; posting-account=x0DxoAoAAAAiEcu3CQhdtzJIGAmMw1Ns User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; es-es) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163620 X-Mailman-Approved-At: Mon, 20 Oct 2008 23:42:15 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58966 Archived-At: Hi everyone, I'm a recent Emacs convert. I'm structuring my .emacs.d directory which has become quite messy. For that purpose, I'd like to know if it's possible to know the name of a file and the path to it from the file itself, like in many other languages, e.g. Ruby. I've looked for a variable or function for this with no luck. Thanks in advance.