Conflict with built-in python.el
Bug #1400284 reported by
Philipp Stephani
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Both python.el (part of GNU Emacs) and python-mode provide a mode 'python-mode'. Installing the python-mode package will silently register python-mode.el for Python files through autoloads. I think these autoloads should be dropped because most users will prefer python.el and will be surprised that merely installing python-mode is enough to override it. Also maybe loading python-mode.el could be aborted if the python-mode function is already defined by python.el.
To post a comment you must log in.
On Dec 08, 2014, at 11:21 AM, Philipp Stephani wrote:
>Both python.el (part of GNU Emacs) and python-mode provide a mode
>'python-mode'. Installing the python-mode package will silently register
>python-mode.el for Python files through autoloads. I think these autoloads
>should be dropped because most users will prefer python.el and will be
>surprised that merely installing python-mode is enough to override it. Also
>maybe loading python-mode.el could be aborted if the python-mode function is
>already defined by python.el.
Of course, python-mode.el was there first. Plus, why would someone want to
install python-mode.el if they weren't going to use it?