aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2013-06-14 19:50:47 -0700
committerGlenn Morris2013-06-14 19:50:47 -0700
commitb86a85ca5e26d6d61041756e109b9b0473d51518 (patch)
treec048764798ddd42c2625a6c0b4e4614164c25b5f
parentf0100d8adca70ae826dfc67fd55c50c4503e8d28 (diff)
downloademacs-b86a85ca5e26d6d61041756e109b9b0473d51518.tar.gz
emacs-b86a85ca5e26d6d61041756e109b9b0473d51518.zip
vc-compilation-mode fixes
* lisp/vc/vc-dispatcher.el (vc-compilation-mode): Avoid making compilation-error-regexp-alist void, or local while let-bound.
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/vc/vc-dispatcher.el11
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0177c88e858..cced6eb0043 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12013-06-15 Glenn Morris <rgm@gnu.org> 12013-06-15 Glenn Morris <rgm@gnu.org>
2 2
3 * vc/vc-dispatcher.el (vc-compilation-mode): Avoid making
4 compilation-error-regexp-alist void, or local while let-bound.
5
3 * progmodes/make-mode.el (makefile-mode-syntax-table): 6 * progmodes/make-mode.el (makefile-mode-syntax-table):
4 Treat "=" as punctuation. (Bug#14614) 7 Treat "=" as punctuation. (Bug#14614)
5 8
diff --git a/lisp/vc/vc-dispatcher.el b/lisp/vc/vc-dispatcher.el
index 309cf50404c..4f4c6942ba9 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."
385 385
386(defun vc-compilation-mode (backend) 386(defun vc-compilation-mode (backend)
387 "Setup `compilation-mode' after with the appropriate `compilation-error-regexp-alist'." 387 "Setup `compilation-mode' after with the appropriate `compilation-error-regexp-alist'."
388 (require 'compile)
388 (let* ((error-regexp-alist 389 (let* ((error-regexp-alist
389 (vc-make-backend-sym backend 'error-regexp-alist)) 390 (vc-make-backend-sym backend 'error-regexp-alist))
390 (compilation-error-regexp-alist 391 (error-regexp-alist (and (boundp error-regexp-alist)
391 (and (boundp error-regexp-alist) 392 (symbol-value error-regexp-alist))))
392 (symbol-value error-regexp-alist)))) 393 (let ((compilation-error-regexp-alist error-regexp-alist))
393 (compilation-mode) 394 (compilation-mode))
394 (set (make-local-variable 'compilation-error-regexp-alist) 395 (set (make-local-variable 'compilation-error-regexp-alist)
395 compilation-error-regexp-alist))) 396 error-regexp-alist)))
396 397
397(defun vc-set-async-update (process-buffer) 398(defun vc-set-async-update (process-buffer)
398 "Set a `vc-exec-after' action appropriate to the current buffer. 399 "Set a `vc-exec-after' action appropriate to the current buffer.