Re: Adding subdirectories to load-path?

Hauke Fath <[email protected]> Fri, 25 Sep 2015 10:57:33 +0200
Newsgroups gmane.emacs.xemacs.beta
Organization TU Darmstadt
Message-ID <[email protected]>
On Fri, 25 Sep 2015 08:53:39 +0200, Michael Sperber wrote:
>> Is there an XEmacs equivalent to the GNU Emacs 
>> "normal-top-level-add-subdirs-to-load-path" function (see 
>> <http://emacswiki.org/emacs/LoadPath>)?
> 
> No.  I'm really unsure of what your problem is or of what you're trying
> to do.  (The paths subsystem should be able to pick up your packages
> automatically if they're in a place XEmacs knows about.)  Could you
> elaborate?

I'll try.

pkgsrc ships an "xemacs" (21.4) or "xemacs-current" (21.5) package, and 
an "xemacs-packages" package. The latter until noe only untared the 
individual xemacs package tarballs, and I am in the process of changing 
that, in order to be able to patch individual distribution files.

The xemacs packages come with compiled elisp files; when I patch source 
files, I need to recompile them. Now, pkgsrc is about building from 
source. In the general case, somebody will install an xemacs, and then 
install xemacs-packages to use with it. During the install process, the 
elisp files will be in some arbitrary place, but not where the 
(previously compiled) xemacs expects them. 

To compile those files, xemacs has to be taught about this arbitrary 
location. The GNU Emacs "normal-top-level-add-subdirs-to-load-path" 
appears to be a handy way to do that.

HTH,
hauke

-- 
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email            Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-3281