debian-bugs-dist.lists.debian.org
[Top] [All Lists]

Bug#273632: semantic: load-path addition order circumvents byte-compiled

Subject: Bug#273632: semantic: load-path addition order circumvents byte-compiled elisp
From: Dean Scarff
Date: Mon, 27 Sep 2004 20:57:37 +0800
Package: semantic
Version: 1:1.0beta3b-1
Severity: normal

This bug applies to several of the CEDET files in
`/etc/emacs/site-start.d/', all are maintained by Masayuki Hatta at
the time of this report so I won't cross-post.

The lines in 52semantic.el

  (add-to-list 'load-path "/usr/share/emacs/site-lisp/semantic/")

etc. occur *after* the addition of the flavour-specific byte-compiled
versions:

  [ ... ] (setq load-path (cons package-dir load-path))

This is contrary to debian-emacs-policy:

  ``The load-path for a given emacs flavor must include /etc/<flavor>
  and /etc/emacs in that order ...'' (s.3)

Steps to replicate:

  emacs -nw

Look for ``Loading semantic-idle (source)'' in *Messages*).  Also
check load-path from within emacs:
"/usr/share/emacs21/site-lisp/semantic" occurs after
"/usr/share/emacs/site-lisp/semantic/".

Fix:

Shift the (add-to-list ...) lines up above the expression containing
the setq.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7+reiser4-sd4
Locale: LANG=C, LC_CTYPE=C

Versions of packages semantic depends on:
ii  cedet-common               1:1.0beta3b-1 Collection of Emacs Development En
ii  ede                        1:1.0beta3b-1 File manager / Makefile generator 
ii  eieio                      1:1.0beta3b-1 Enhanced Implementation of Emacs I
ii  speedbar                   1:1.0beta3b-1 Everything browser, or Dired on st

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#273632: semantic: load-path addition order circumvents byte-compiled elisp, Dean Scarff <=