branch: externals/auctex-cont-latexmk
commit 7c3c45f924c96d1ed22c051ae99a27abdd94db53
Author: Paul Nelson <ultr...@gmail.com>
Commit: Paul Nelson <ultr...@gmail.com>

    fix "tab goes from compilation buffer to tex buffer" feature
---
 czm-tex-compile.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/czm-tex-compile.el b/czm-tex-compile.el
index f9a1b37912..f8c083934c 100644
--- a/czm-tex-compile.el
+++ b/czm-tex-compile.el
@@ -84,10 +84,11 @@
         (let ((current-buf (current-buffer)))
           (with-current-buffer (get-buffer 
czm-tex-compile--compilation-buffer-name)
             (special-mode)
+            (setq-local czm-tex-compile--parent-buffer current-buf)
             (local-set-key (kbd "TAB")
                            (lambda ()
                              (interactive)
-                             (set-window-buffer (selected-window) 
current-buf)))))
+                             (set-window-buffer (selected-window) 
czm-tex-compile--parent-buffer)))))
         (add-hook 'kill-buffer-hook 'czm-tex-compile--kill-process nil t)
         (add-hook 'flymake-diagnostic-functions #'czm-tex-compile-flymake nil 
t)
         (when czm-tex-compile--log-watch-timer

Reply via email to