Conflict with built-in python.el

Bug #1400284 reported by Philipp Stephani
6
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.

Revision history for this message
Barry Warsaw (barry) wrote : Re: [Bug 1400284] [NEW] Conflict with built-in python.el

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?

Revision history for this message
Andreas Roehler (a-roehler) wrote :

On 08.12.2014 12:21, Philipp Stephani wrote:
> Public bug reported:
>
> 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.
>

As python-mode.el doesn't unload python.el by default, all commands should be available.
Will attach the result of M-x run-python RET --(python.el, buffer displays "Inferior Python:)--
and M-x python3 RET -(python-mode.el, "Comint:run" at my version)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.