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

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

[nongnu] elpa/lua-mode c5e9620 238/468: Fix stacktrace parsing in inferi


From: Philip Kaludercic
Subject: [nongnu] elpa/lua-mode c5e9620 238/468: Fix stacktrace parsing in inferior process buffer
Date: Thu, 5 Aug 2021 04:58:45 -0400 (EDT)

branch: elpa/lua-mode
commit c5e9620691f6ed1ebf08e3dbf4c711b3d43b69be
Author: immerrr <immerrr+lua@gmail.com>
Commit: immerrr <immerrr+lua@gmail.com>

    Fix stacktrace parsing in inferior process buffer
---
 lua-mode.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/lua-mode.el b/lua-mode.el
index e4b588f..240cb8b 100644
--- a/lua-mode.el
+++ b/lua-mode.el
@@ -1571,7 +1571,15 @@ When called interactively, switch to the process buffer."
       (goto-char (point-max)))
     ;; send initialization code
     (comint-simple-send nil lua-process-init-code)
+
     ;; enable error highlighting in stack traces
+    (require 'compile)
+    (make-local-variable 'compilation-error-regexp-alist)
+    (setq compilation-error-regexp-alist
+          (cons '("^\t*\\([^:\n]+\\):\\([^:\n]+\\):" 1 2)
+                ;; Remove 'gnu entry from error regexp alist, it somehow forces
+                ;; leading TAB to be recognized as part of filename in Emacs23.
+                (delq 'gnu compilation-error-regexp-alist)))
     (compilation-shell-minor-mode))
 
   ;; when called interactively, switch to process buffer
@@ -1659,7 +1667,6 @@ If `lua-process' is nil or dead, start a new process 
first."
 
 (defalias 'lua-send-proc 'lua-send-defun)
 
-;; FIXME: This needs work... -Bret
 (defun lua-send-buffer ()
   "Send whole buffer to lua subprocess."
   (interactive)



reply via email to

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