diff options
| author | Stefan Monnier | 2005-06-29 06:58:42 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-06-29 06:58:42 +0000 |
| commit | 533438b139c5de29067d47ba1d023e4c354d29c1 (patch) | |
| tree | 7497a7f7768c73a6625be7be0d8ec2bae043b0d7 /lisp/progmodes/python.el | |
| parent | 8c39e595e800a27816cffb22580ad293b51825ab (diff) | |
| download | emacs-533438b139c5de29067d47ba1d023e4c354d29c1.tar.gz emacs-533438b139c5de29067d47ba1d023e4c354d29c1.zip | |
(python-check): Require `compile' before modifying its variables.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 3f556bdb695..70ea8b4bac6 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -949,6 +949,7 @@ See `python-check-command' for the default." | |||
| 949 | (if name | 949 | (if name |
| 950 | (file-name-nondirectory name)))))))) | 950 | (file-name-nondirectory name)))))))) |
| 951 | (setq python-saved-check-command command) | 951 | (setq python-saved-check-command command) |
| 952 | (require 'compile) ;To define compilation-* variables. | ||
| 952 | (save-some-buffers (not compilation-ask-about-save) nil) | 953 | (save-some-buffers (not compilation-ask-about-save) nil) |
| 953 | (let ((compilation-error-regexp-alist | 954 | (let ((compilation-error-regexp-alist |
| 954 | (cons '("(\\([^,]+\\), line \\([0-9]+\\))" 1 2) | 955 | (cons '("(\\([^,]+\\), line \\([0-9]+\\))" 1 2) |