Package: emacs22
Version: 22.2+2-3
Severity: normal

This issue might affect those upgrading from earlier versions of
emacs.  I am submitting it mostly with an eye to the upcoming
release.  The problem prevent emacs from entering python-mode.

When I tried to open a python (.py) file or execute M-x python-mode, I
was getting this error (shown in the form in *Messages* buffer):
File mode specification error: (file-error "Cannot open load file" 
"python-mode")

This occurred even with emacs -q starts.

/etc/emacs/site-start.d/50python-mode.el was present, and seems to be
the culprit.  When I removed it everything worked.  I guess this is a
left-over from some earlier version of emacs (or the python-mode
package).

I know package installation/upgrade is supposed to respect settings in
/etc, but perhaps there is some solution for this.  Failing that,
maybe a note in README.Debian could give a hint about the problem.

It is possible I encountered this because of something weird about
this particular system.  I did not encounter it with a newer system.

I don't need a fix, since removing 50python-mode.el seems to make
things work.

For reference, here's the contents of the offending file:
--------------------------------------------------------------
;-*-emacs-lisp-*-

(autoload 'python-mode "python-mode" "Python editing mode." t)

(setq load-path (cons (concat "/usr/share/"
                              (symbol-name debian-emacs-flavor)
                              "/site-lisp/python-elisp")
                      load-path))

(setq auto-mode-alist
    (cons '("\\.py$" . python-mode) auto-mode-alist))

(setq interpreter-mode-alist
    (cons '("python" . python-mode) interpreter-mode-alist))

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable'), (40, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages emacs22 depends on:
ii  emacs22-bin-common     22.2+2-3          The GNU Emacs editor's shared, arc
ii  libasound2             1.0.16-2          ALSA library
ii  libc6                  2.7-10            GNU C Library: Shared libraries
ii  libgif4                4.1.6-5           library for GIF images (library)
ii  libice6                2:1.0.4-1         X11 Inter-Client Exchange library
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libncurses5            5.6+20080713-1    shared libraries for terminal hand
ii  libpng12-0             1.2.27-1          PNG library - runtime
ii  libsm6                 2:1.0.3-2         X11 Session Management library
ii  libtiff4               3.8.2-10          Tag Image File Format (TIFF) libra
ii  libx11-6               2:1.1.4-2         X11 client-side library
ii  libxext6               2:1.0.4-1         X11 miscellaneous extension librar
ii  libxmu6                2:1.0.4-1         X11 miscellaneous utility library
ii  libxpm4                1:3.5.7-1         X11 pixmap library
ii  libxt6                 1:1.0.5-3         X11 toolkit intrinsics library
ii  xaw3dg                 1.5+E-17          Xaw3d widget set
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

emacs22 recommends no packages.

Versions of packages emacs22 suggests:
ii  emacs22-common-non-dfsg       22.2+2-1.1 GNU Emacs shared, architecture ind

-- no debconf information



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

Reply via email to