Package: gnu-smalltalk Version: 2.1.8-2 Severity: wishlist
gnu-smalltalk installs a couple of Emacs lisp files in /usr/share/emacs/site-lisp/gnu-smalltalk. Unlike other packages that have Emacs support files, gnu-smalltalk does not compile and install the files, nor does it update the load-path for loading the uncompiled lisp files that come with the package. I am not sure about the severity of this bug, nor am I fully aware of if it is a violation of Debian Emacs Policy. Someone more knowledgeable then myself might want to look at that. I am including three files that I found needed to be present in order to have gnu-smalltalk enabled in Emacs if it was installed. Hopefully the information and the files will be helpful to someone :) cheers, mehul ---- Begin /etc/emacs/site-start.d/50gnu-smalltalk.el ;; -*-emacs-lisp-*- ;; ;; Emacs startup file for the Debian GNU/Linux gnu-smalltalk package ;; ;; Adapted for dh-make by Mehul N. Sanghvi <[EMAIL PROTECTED]> by ;; adapting from the goo package file which was done for dh-make by ;; Jim Van Zandt <[EMAIL PROTECTED]> ;; Since this was adapted from the goo package, the following is true ;; for gnu-smalltalk as well: ;; The goo package follows the Debian/GNU Linux 'emacsen' policy and ;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, ;; xemacs19, emacs20, xemacs20...). The compiled code is then ;; installed in a subdirectory of the respective site-lisp directory. ;; We have to add this to the load-path: (setq load-path (cons (concat "/usr/share/" (symbol-name flavor) "/site-lisp/gnu-smalltalk") load-path)) (setq auto-mode-alist (cons '("\\.st\\'" . smalltalk-mode) ;; auto-mode-alist)) (autoload 'smalltalk-mode "smalltalk-mode" "Major mode for editing Smalltalk code." t) ----- End /etc/emacs/site-start.d/50gnu-smalltalk.el ----- Begin /usr/lib/emacsen-common/packages/install/gnu-smalltalk #! /bin/sh -e # /usr/lib/emacsen-common/packages/install/gnu-smalltalk # Written by Mehul N. Sanghvi <[EMAIL PROTECTED]>, borrowing # (more like stealing) from the install scripts for goo by # Jim Van Zandt <[EMAIL PROTECTED]>, who in turn, borrowed heavily # from the install scripts for gettext by Santiago Vila # <[EMAIL PROTECTED]> and octave by Dirk Eddelbuettel <[EMAIL PROTECTED]>. FLAVOR=$1 PACKAGE=gnu-smalltalk if [ ${FLAVOR} = emacs ]; then exit 0; fi echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} #FLAVORTEST=`echo $FLAVOR | cut -c-6` #if [ ${FLAVORTEST} = xemacs ] ; then # SITEFLAG="-no-site-file" #else # SITEFLAG="--no-site-file" #fi FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} # Install-info-altdir does not actually exist. # Maybe somebody will write it. if test -x /usr/sbin/install-info-altdir; then echo install/${PACKAGE}: install Info links for ${FLAVOR} install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz fi install -m 755 -d ${ELCDIR} cd ${ELDIR} case "${FLAVOR}" in xemacs*) FILES='gst-mode.el smalltalk-mode.el' ;; *) FILES=`echo *.el` ;; esac cp ${FILES} ${ELCDIR} cd ${ELCDIR} cat << EOF > path.el (setq load-path (cons "." load-path) byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} rm -f *.el path.el exit 0 ------ End /usr/lib/emacsen-common/packages/install/gnu-smalltalk ------ Begin /usr/lib/emacsen-common/packages/remove/gnu-smalltalk #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/gnu-smalltalk FLAVOR=$1 PACKAGE=gnu-smalltalk if [ ${FLAVOR} != emacs ]; then if test -x /usr/sbin/install-info-altdir; then echo remove/${PACKAGE}: removing Info links for ${FLAVOR} install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/gst.info.gz fi echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} fi ------ End /usr/lib/emacsen-common/packages/remove/gnu-smalltalk -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: powerpc (ppc) Kernel: Linux 2.4.27-powerpc Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages gnu-smalltalk depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libreadline4 4.3-11 GNU readline and history libraries -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]