summaryrefslogtreecommitdiff
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina <fgallina@gnu.org>2015-07-06 02:02:06 -0300
committerFabián Ezequiel Gallina <fgallina@gnu.org>2015-07-06 02:02:06 -0300
commit8867296609b353715f82e3bcca12f1dfe5469622 (patch)
tree25db71abe91bc1a6fa7358d407d6bcfd361c7e2d /lisp/progmodes/python.el
parent02dc8dac7e9a7d3482d63d554bc20b579c74f072 (diff)
downloademacs-8867296609b353715f82e3bcca12f1dfe5469622.tar.gz
emacs-8867296609b353715f82e3bcca12f1dfe5469622.tar.bz2
emacs-8867296609b353715f82e3bcca12f1dfe5469622.zip
; python.el: Replace `eval-when-compile` with `eval-and-compile`
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 0fe1aa97cd0..9c5c71db882 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -360,7 +360,7 @@
;;; Python specialized rx
-(eval-when-compile
+(eval-and-compile
(defconst python-rx-constituents
`((block-start . ,(rx symbol-start
(or "def" "class" "if" "elif" "else" "try"
@@ -431,7 +431,7 @@ This variant of `rx' supports common Python named REGEXPS."
;;; Font-lock and syntax
-(eval-when-compile
+(eval-and-compile
(defun python-syntax--context-compiler-macro (form type &optional syntax-ppss)
(pcase type
(`'comment