[Pkg-gnu-smalltalk-devel] Bug#653306: gnu-smalltalk-el: visiting .st when removed but not purged
Kevin Ryde
user42 at zip.com.au
Mon Dec 26 17:34:49 UTC 2011
Package: gnu-smalltalk-el
Version: 3.2.4-2
Severity: normal
File: /etc/emacs/site-start.d/50gnu-smalltalk-el.el
After
apt-get remove gnu-smalltalk-el
visiting a .st file
C-x C-f /tmp/foo.st
gets an error
File mode specification error: (file-error "Cannot open load file" "gnu-smalltalk-el")
I think 50gnu-smalltalk-el.el should not make auto-mode-alist setups if
the package has been removed but not purged (ie. 50gnu-smalltalk-el.el
remains but the package is otherwise gone).
Usually this can be done by checking for a package directory and
skipping the setups when "removed but not purged". Eg. (untested :-)
(if (not (file-exists-p "/usr/share/emacs/site-lisp/gnu-smalltalk-el"))
(message "gnu-smalltalk-el removed but not purged, skipping setup")
(autoload ...)
(add-to-list 'auto-mode-alist ...)
...)
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages gnu-smalltalk-el depends on:
ii emacs21 [emacsen] 21.4a+1-5.7
ii emacs22-gtk [emacsen] 22.3+1-1.2
ii emacs23 [emacsen] 23.3+1-1
ii xemacs21-mule [emacsen] 21.4.22-3
gnu-smalltalk-el recommends no packages.
gnu-smalltalk-el suggests no packages.
-- no debconf information
More information about the Pkg-gnu-smalltalk-devel
mailing list