🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #1801

Can a loading file get its path?

#1801
From: Jason Merrill
Date: Wed, 18 Nov 1992 09:54
7 lines
884 bytes
When an elisp file is being loaded, is there any way for it to find out
what its pathname is?  It doesn't have a buffer yet, so buffer-file-name is
nil.  default-directory just gives the current directory of emacs.

--
Jason Merrill					jason@jarthur.claremont.edu
This is a self-referential .sig which is not particularly interesting.
Technical Details
Message-ID: <1992Nov18.095408.23454@muddcs.claremont.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usc!elroy.jpl.nasa.gov!news.claremont.edu!jarthur.claremont.edu!jason

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!usc!elroy.jpl.nasa.gov!news.claremont.edu!jarthur.claremont.edu!jason
From: jason@jarthur.claremont.edu (Jason Merrill)
Subject: Can a loading file get its path?
Message-ID: <1992Nov18.095408.23454@muddcs.claremont.edu>
Sender: news@muddcs.claremont.edu (The News System)
Organization: Harvey Mudd College, Claremont, CA 91711
Date: Wed, 18 Nov 1992 09:54:08 GMT
Lines: 7