summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1997-02-24 03:37:22 (GMT)
committerBarry Warsaw <barry@python.org>1997-02-24 03:37:22 (GMT)
commitfb07f408b681e1a100131a59c24c65a675dccf40 (patch)
tree43037a680aec181901d7ae190fb923672b4f4bc9 /Misc
parent2a0711d8db0cd169f904fb7eb96527cefebfdda3 (diff)
downloadcpython-fb07f408b681e1a100131a59c24c65a675dccf40.zip
cpython-fb07f408b681e1a100131a59c24c65a675dccf40.tar.gz
cpython-fb07f408b681e1a100131a59c24c65a675dccf40.tar.bz2
(python-font-lock-keywords): Use new convention for installing in mode
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index fe6d323..9f88798 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -208,7 +208,7 @@ equal <number>, `tab-width' is set to <number>, a message saying so is
displayed in the echo area, and if `py-beep-if-tab-change' is non-nil
the Emacs bell is also rung as a warning.")
-(defconst python-font-lock-keywords
+(defvar python-font-lock-keywords
(let* ((keywords '("and" "break" "class"
"continue" "def" "del" "elif"
"else:" "except" "except:" "exec"
@@ -234,6 +234,8 @@ the Emacs bell is also rung as a warning.")
1 font-lock-function-name-face)
))
"Additional expressions to highlight in Python mode.")
+(put 'python-mode 'font-lock-defaults '(python-font-lock-keywords))
+
(defvar imenu-example--python-show-method-args-p nil
"*Controls echoing of arguments of functions & methods in the imenu buffer.
@@ -716,7 +718,6 @@ py-beep-if-tab-change\t\tring the bell if tab-width is changed"
(setq major-mode 'python-mode
mode-name "Python"
local-abbrev-table python-mode-abbrev-table
- font-lock-defaults '(python-font-lock-keywords)
paragraph-separate "^[ \t]*$"
paragraph-start "^[ \t]*$"
require-final-newline t