branch: externals/beardbolt
commit 62e68ea2d48357cbd677002fcfee4aafe00b9d1e
Author: Jay Kamat <[email protected]>
Commit: Jay Kamat <[email protected]>
Fix overlays not working on first compile with popup
---
rmsbolt.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index 201110f79b..65cc861243 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -1350,9 +1350,12 @@ Argument OVERRIDE-BUFFER use this buffer instead of
reading from the output file
(rmsbolt-mode 1)
(setq-local rmsbolt-src-buffer src-buffer)
(display-buffer (current-buffer))
- ;; Attempt to replace overlays
- (with-current-buffer src-buffer
- (rmsbolt-move-overlays)))))
+ ;; Attempt to replace overlays.
+ ;; TODO find a way to do this without a timer hack
+ (run-with-timer rmsbolt-overlay-delay nil
+ (lambda ()
+ (with-current-buffer src-buffer
+ (rmsbolt-move-overlays)))))))
((and t
(not rmsbolt--automated-compile))
;; Display compilation output