An Emacs mode for editing Python code

Python-mode fails on emacs 22

Asked by John C on 2012-10-23

The ":safe" keyword to defcustom was added in emacs 23, and causes the defcustom that comes with emacs 22 to choke when python-mode is loaded.

Is there any workaround for this, other than upgrading to, and working through all the issues with, emacs 23?

Is the :safe keyword really necessary? What dire things might happen if I were to chop out all references to it in python-mode.el?

Question information

Language:
English Edit question
Status:
Solved
For:
python-mode.el Edit question
Assignee:
No assignee Edit question
Solved by:
Andreas Roehler
Solved:
2012-10-27
Last query:
2012-10-27
Last reply:
2012-10-24
Best Andreas Roehler (a-roehler) said : #1

Am 23.10.2012 17:21, schrieb John C:
> New question #212093 on python-mode.el:
> https://answers.launchpad.net/python-mode/+question/212093
>
> The ":safe" keyword to defcustom was added in emacs 23, and causes the defcustom that comes with emacs 22 to choke when python-mode is loaded.
>
> Is there any workaround for this, other than upgrading to, and working through all the issues with, emacs 23?
>
> Is the :safe keyword really necessary? What dire things might happen if I were to chop out all references to it in python-mode.el?
>

Will remove it, thanks.

John C (jmcmatrix) said : #2

Thanks Andreas Roehler, that solved my question.