python-mode is missing the class browser
Bruno Desthuilliers
bruno.42.desthuilliers at websiteburo.invalid
Thu Aug 7 11:30:22 EDT 2008
Michele Simionato a écrit :
> I have noticed that the python-mode for Emacs that comes with the
> latest Ubuntu is missing the class browser. Moreover if works
> differently from the python-mode I was used to (for instance CTRL-c-c
> works as CTRL-c-! whereas CTRL-c-! is missing, etc). How can I go back
> to the old python-mode
> or at least how do I get back the class browser?
I'm not really up2date wrt/ my ubuntu station here, but I remember
having seen this somewhat different (emacs-provided IIRC) python-mode
which I didn't like. I don't quite remember what I did, but I can at
least tell you what I have actually have:
- in /usr/share/emacs/site-lisp/python-mode/python-mode.el : the 'true'
python-mode which header goes like this:
"""
;;; python-mode.el --- Major mode for editing Python programs
;; Copyright (C) 1992,1993,1994 Tim Peters
;; Author: 2003-2006 http://sf.net/projects/python-mode
;; 1995-2002 Barry A. Warsaw
;; 1992-1994 Tim Peters
;; Maintainer: python-mode at python.org
;; Created: Feb 1992
;; Keywords: python languages oop
(defconst py-version "$Revision: 4.78 $"
"`python-mode' version number.")
"""
- in /usr/share/emacs/22.0.91/site-lisp/python-mode/ : the corresponding
byte-compiled python-mode.elc
- in /etc/emacs/site-start.d/ : a 50python-mode.el file that reads:
"""
;-*-emacs-lisp-*-
(autoload 'python-mode "python-mode" "Python editing mode." t)
(autoload 'py-shell "python-mode" "Interactive Python interpreter." t)
(autoload 'doctest-mode "doctest-mode" "Python doctest editing mode." t)
(setq load-path
(append
(list
(concat "/usr/share/"
(symbol-name debian-emacs-flavor)
"/site-lisp/python-mode")
(concat "/usr/share/"
(symbol-name debian-emacs-flavor)
"/site-lisp/pymacs")
)
load-path))
(setq auto-mode-alist
(append
(list
'("\\.py$" . python-mode)
'("SConstruct$" . python-mode)
'("SConscript$" . python-mode)
)
auto-mode-alist))
(setq interpreter-mode-alist
(append
(list
'("python" . python-mode)
'("python2.1" . python-mode)
'("python2.2" . python-mode)
'("python2.3" . python-mode)
'("python2.4" . python-mode)
'("python2.5" . python-mode)
)
interpreter-mode-alist))
"""
emacs-version : GNU Emacs 22.0.91.1 (i486-pc-linux-gnu, GTK+ Version
2.10.6) of 2006-12-20 on rothera, modified by Debian
ubuntu Feisty Fawn (7.04)
FWIW and talking about class-browser, there's the IMHO very excellent
emacs-code-browser too.
HTH
More information about the Python-list
mailing list