Bug#583697: slime: slime's tree-widget shadows emacs23's version; doesn't define functions

Hilko Bengen bengen at debian.org
Sat May 29 17:19:48 UTC 2010


Package: slime
Version: 1:20100220-4
Severity: critical

While playing around with elim/garak, it struck me as odd that I was
getting errors because there was no tree-widget-use-image-p function. It
appeared that the tree-widget.elc that came with slime had been loaded
instead of the version provided by the emacs23 package. (Which is not
surprising at all, since directories of the various lisp packages apper
well before the emacs23 directories in the load-path.) The tree-widget
shipped with slime contains tree-widget-use-image-p, but for some reason
it is not defined.

    $ cat test.el
    (require 'tree-widget)
    (print (fboundp 'tree-widget-use-image-p))
    $ emacs23 --no-init-file --script test.el
    [...]
    nil
    $ sudo dpkg --purge slime
    [...]
    $ emacs23 --no-init-file --script test.el
    [...]
    t

As far as I can tell, tree-widget is only needed for XEmacs, so a
possible solution might be to install tree-widget into its own
directory, (i.e. /usr/share/emacs/site-lisp/slime/xemacs-compat) and
have site-start.d/50slime.el add that path only when running on XEmacs:

(when (featurep 'xemacs)
  (debian-pkg-add-load-path-item (concat package-dir "/xemacs-compat")))

Cheers,
-Hilko

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages slime depends on:
ii  dpkg                      1.15.7.2       Debian package management system
ii  emacsen-common            1.4.19         Common facilities for all emacsen
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in 

Versions of packages slime recommends:
ii  cl-swank                  1:20100220-4   Superior LISP Interaction Mode for
ii  emacs23 [info-browser]    23.2+1-2       The GNU Emacs editor (with GTK+ us
ii  info [info-browser]       4.13a.dfsg.1-5 Standalone GNU Info documentation 
ii  jed [info-browser]        1:0.99.19-2    editor for programmers (textmode v
ii  jed-extra [info-browser]  2.5.6-1        collection of useful Jed modes and
ii  pinfo [info-browser]      0.6.9-5        An alternative info-file viewer
ii  xjed [info-browser]       1:0.99.19-2    editor for programmers (x11 versio

slime suggests no packages.

-- no debconf information





More information about the pkg-common-lisp-devel mailing list