[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: python-mode: no variable compilation-error-regexp-alist
From: |
Stefan Monnier |
Subject: |
Re: python-mode: no variable compilation-error-regexp-alist |
Date: |
Wed, 29 Jun 2005 02:58:02 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> C-c C-v (python-check), called with the default command, results in
> an error:
> call-interactively: Symbol's value as variable is void: compilation-
> error-regexp-alist
The patch below should trivially fix this problem.
Stefan
--- orig/lisp/progmodes/python.el
+++ mod/lisp/progmodes/python.el
@@ -949,6 +949,7 @@
(if name
(file-name-nondirectory name))))))))
(setq python-saved-check-command command)
+ (require 'compile) ;To define compilation-* variables.
(save-some-buffers (not compilation-ask-about-save) nil)
(let ((compilation-error-regexp-alist
(cons '("(\\([^,]+\\), line \\([0-9]+\\))" 1 2)