Luca Capello <[EMAIL PROTECTED]> wrote:

> Hello Peter!
> 
> On Thu 03 Nov 2005 16:59 +0100, Peter S Galbraith wrote:
> > Peter S Galbraith <[EMAIL PROTECTED]> wrote:
> > Now I'm very confused because I already skip byte-compilation of
> > gnus-BTS!
> 
> It doesn't seem the case (at least for emacs-snapshot, read below).

Ok... that's the bug!
 
> > What is the output of `M-x locate-library gnus-BTS' ?
> > It should be:
> > Library is file /usr/share/emacs/site-lisp/debian-el/gnus-BTS.el
> 
> /usr/share/emacs-snapshot/site-lisp/debian-el/gnus-BTS.elc

Right...

> gismo:/home/luca# ls /usr/share/emacs-snapshot/site-lisp/debian-el/
> apt-sources.el   apt-utils.el   debian-bug.el   debian-el.el
> apt-sources.elc  apt-utils.elc  debian-bug.elc  debian-el.elc
> debian-el-loaddefs.el   deb-view.el   gnus-BTS.el   preseed.el
> debian-el-loaddefs.elc  deb-view.elc  gnus-BTS.elc  preseed.elc
> 
> gismo:/home/luca# ls /usr/share/emacs21/site-lisp/debian-el/
> apt-sources.el   apt-utils.el   debian-bug.el   debian-el.el
> apt-sources.elc  apt-utils.elc  debian-bug.elc  debian-el.elc
> debian-el-loaddefs.el   deb-view.el   preseed.el
> debian-el-loaddefs.elc  deb-view.elc  preseed.elc
 
> As you can see, there's a problem:
> 
> - on emacs21, gnus-BTS.el is not byte-compiled, neither symlinked, in
>   fact M-x locate-library gives "No library gnus-BTS in search path";
>   manually creating the symlink gives "Library is file
>   /usr/share/emacs21/site-lisp/debian-el/gnus-BTS.el" (which is still
>   different from your line, note the emacs21 folder)
> 
> - on emacs-snapshot, we've both (byte-compiled and symlinked)

Good catch.
 
> The cause is in /usr/lib/emacsen-common/packages/install/debian-el:
> =====
> # Don't byte-compile gnus-BTS.el since it uses gnus macros and will
> <cut>
> EXCLUDED_emacs20="gnus-BTS.el"
> EXCLUDED_emacs21="gnus-BTS.el"
> EXCLUDED_xemacs21="gnus-BTS.el"
> =====
> 
> We're missing EXCLUDED_emacs-snapshot="gnus-BTS.el".

Sort of...

>                                                      But in this case,
> gnus-BTS.el will be not available in the path as it's not symlinked.

The problem is that I used the EXCLUDED_emacs21 scheme to skip
byte-compilation, relying on the fact that the source elisp directory
was in the load-path.  I recently removed it from the load-path and
substituted by the symlinks.  But the `EXCLUDED_emacs21' is used for
files that are actually imcompatble with a flavour of Emacs.  I'll add
something else to skip byte-compilation as well and will use it for
gnus-BTS.el

Thanks for all your help tracking this down!

Peter


-- 
Peter S. Galbraith, Debian Developer          <[EMAIL PROTECTED]>
                                 http://people.debian.org/~psg
GPG key 1024/D2A913A1 - 97CE 866F F579 96EE  6E68 8170 35FF 799E


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to