emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex-cont-latexmk 30694ac352 039/100: make TAB switch


From: ELPA Syncer
Subject: [elpa] externals/auctex-cont-latexmk 30694ac352 039/100: make TAB switch from compilation buffer back to tex file
Date: Thu, 6 Jun 2024 03:57:54 -0400 (EDT)

branch: externals/auctex-cont-latexmk
commit 30694ac352b6cead9a662bdde1afea46b7dd9cc4
Author: Paul Nelson <ultrono@gmail.com>
Commit: Paul Nelson <ultrono@gmail.com>

    make TAB switch from compilation buffer back to tex file
---
 czm-tex-compile.el | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/czm-tex-compile.el b/czm-tex-compile.el
index 11259d5647..f9a1b37912 100644
--- a/czm-tex-compile.el
+++ b/czm-tex-compile.el
@@ -78,8 +78,16 @@
                                                                "*"))
         (let ((command (concat czm-tex-compile-command " " name ".tex")))
           (setq czm-tex-compile--process
-                (start-process-shell-command "czm-tex-compile" 
czm-tex-compile--compilation-buffer-name
-                                             command)))
+                (start-process-shell-command
+                 "czm-tex-compile" czm-tex-compile--compilation-buffer-name
+                 command)))
+        (let ((current-buf (current-buffer)))
+          (with-current-buffer (get-buffer 
czm-tex-compile--compilation-buffer-name)
+            (special-mode)
+            (local-set-key (kbd "TAB")
+                           (lambda ()
+                             (interactive)
+                             (set-window-buffer (selected-window) 
current-buf)))))
         (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

[Prev in Thread] Current Thread [Next in Thread]