From: Glenn Morris Date: Sat, 15 Jun 2013 02:50:47 +0000 (-0700) Subject: vc-compilation-mode fixes X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/b86a85ca5e26d6d61041756e109b9b0473d51518 vc-compilation-mode fixes * lisp/vc/vc-dispatcher.el (vc-compilation-mode): Avoid making compilation-error-regexp-alist void, or local while let-bound. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0177c88e85..cced6eb004 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2013-06-15 Glenn Morris + * vc/vc-dispatcher.el (vc-compilation-mode): Avoid making + compilation-error-regexp-alist void, or local while let-bound. + * progmodes/make-mode.el (makefile-mode-syntax-table): Treat "=" as punctuation. (Bug#14614) diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el index 309cf50404..4f4c6942ba 100644 --- a/lisp/vc/vc-dispatcher.el +++ b/lisp/vc/vc-dispatcher.el @@ -385,14 +385,15 @@ Display the buffer in some window, but don't select it." (defun vc-compilation-mode (backend) "Setup `compilation-mode' after with the appropriate `compilation-error-regexp-alist'." + (require 'compile) (let* ((error-regexp-alist (vc-make-backend-sym backend 'error-regexp-alist)) - (compilation-error-regexp-alist - (and (boundp error-regexp-alist) - (symbol-value error-regexp-alist)))) - (compilation-mode) + (error-regexp-alist (and (boundp error-regexp-alist) + (symbol-value error-regexp-alist)))) + (let ((compilation-error-regexp-alist error-regexp-alist)) + (compilation-mode)) (set (make-local-variable 'compilation-error-regexp-alist) - compilation-error-regexp-alist))) + error-regexp-alist))) (defun vc-set-async-update (process-buffer) "Set a `vc-exec-after' action appropriate to the current buffer.