reassign 493919 python-mode 1:1.0-3.1
retitle 493919 python-mode: sets up load-path and co. even when removed
thanks

On 2008-08-06 00:02 +0200, Ross Boylan wrote:

> 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).

Indeed, this happens when you have removed, but not purged, the
python-mode package.

> 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))

The problem is that this is set up unconditionally, even if the
python-mode package has been removed.  50python-mode.el should check
that condition, see the emacs-goodies-el package for how to do this.

Regards,
        Sven



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

Reply via email to