summaryrefslogtreecommitdiff
path: root/lisp/progmodes/compile.el
diff options
context:
space:
mode:
authorTroy Hinckley <t.macman@gmail.com>2019-01-16 14:47:07 -0800
committerNoam Postavsky <npostavs@users.sourceforge.net>2019-04-04 19:39:42 -0400
commit905f6195191a518b7bb2dbdf6eacae41d31fc54e (patch)
tree0f6adb66a97c668469704d7662a3d2c00ffdc45b /lisp/progmodes/compile.el
parent690c678fb6c1fb5b2f828f9bb90782bd0b01c399 (diff)
downloademacs-905f6195191a518b7bb2dbdf6eacae41d31fc54e.tar.gz
Don't check comp-buffer-name-function in derived mode (Bug#34956)
* lisp/progmodes/compile.el (define-compilation-mode): Remove 'compilation-buffer-name-function' from the list of overridden variables to ensure that it is not mistaken for a variable that can be major mode specific. 'compilation-buffer-name-function' is used before the major mode is loaded, therefore overriding it here is ineffectual. Also, the function 'compilation-start' takes an optional argument name-function, so there is already a mechanism to override it.
Diffstat (limited to 'lisp/progmodes/compile.el')
-rw-r--r--lisp/progmodes/compile.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 6d5775209c0..1a0d9bdbb70 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -2056,8 +2056,7 @@ by replacing the first word, e.g., `compilation-scroll-output' from
(if (boundp 'byte-compile-bound-variables)
(memq (cdr v) byte-compile-bound-variables)))
`(set (make-local-variable ',(car v)) ,(cdr v))))
- '(compilation-buffer-name-function
- compilation-directory-matcher
+ '(compilation-directory-matcher
compilation-error
compilation-error-regexp-alist
compilation-error-regexp-alist-alist