Mercurial > emacs
comparison lisp/progmodes/python.el @ 63831:1962e8146bf4
(python-check): Require `compile' before modifying its variables.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 29 Jun 2005 06:58:42 +0000 |
parents | 7b4e7e55f61b |
children | 69990675200d bb71c6cf2009 |
comparison
equal
deleted
inserted
replaced
63830:73629b5f7093 | 63831:1962e8146bf4 |
---|---|
947 (concat python-check-command " " | 947 (concat python-check-command " " |
948 (let ((name (buffer-file-name))) | 948 (let ((name (buffer-file-name))) |
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) |
955 compilation-error-regexp-alist))) | 956 compilation-error-regexp-alist))) |
956 (compilation-start command))) | 957 (compilation-start command))) |