branch: externals/detached
commit 8a76055290aae3e9b555a055498e71591032e995
Author: Niklas Eklund <[email protected]>
Commit: Niklas Eklund <[email protected]>
Bug fix: Make detached-recompile work as intended
Make sure compile-command and compilation-arguments are set correctly
in the compilation buffer in order for detached-compile-recompile to
work with the buffer.
---
detached-compile.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/detached-compile.el b/detached-compile.el
index fe9a8ddd4e..76b3f17c91 100644
--- a/detached-compile.el
+++ b/detached-compile.el
@@ -91,6 +91,8 @@ Optionally EDIT-COMMAND."
"Run in `compilation-start-hook' if `detached-enabled'."
(when detached-enabled
(setq detached--buffer-session detached--current-session)
+ (setq compile-command (detached--session-command
detached--current-session))
+ (setq compilation-arguments nil)
(detached-compile--replace-modesetter)
(when detached-filter-ansi-sequences
(add-hook 'compilation-filter-hook #'ansi-color-compilation-filter 0 t))