]> git.eshelyaron.com Git - emacs.git/commit
Make Compilation mode recognize Lua errors
authorRudolf Adamkovič <salutis@me.com>
Tue, 3 Oct 2023 07:07:40 +0000 (09:07 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Jan 2024 19:11:12 +0000 (20:11 +0100)
commitcaa6f1ceafcf8c2fc4ea8e7f13a7489d813d0930
treeb51ef39ce2b39e84ad29c972f89346624c211dc3
parentaabbfb8e8353d8097b06313874b56de78f9366fc
Make Compilation mode recognize Lua errors

Emacs comes with built-in support for the Lua programming language in
the form of the Lua mode and now also the Lua Tree-sitter mode.  This
patch further improves Lua support in Emacs by making the Compilation
mode recognize Lua errors and stack traces.

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
Add regexps to aid Lua development, namely the 'lua' regexp that
matches Lua errors and the 'lua-stack' regexp that matches Lua stack
frames.  (Bug#60830)
* etc/compilation.txt (Lua): Add an example of a Lua error message
with a stack trace.
* test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data):
(compile-test-error-regexps): Test the new 'lua' and 'lua-stack'
regexps added to the 'compilation-error-regexp-alist-alist'.

(cherry picked from commit cd0eb055fd4ebc3f7f7f5f5617549f963fe8ecff)
etc/NEWS
etc/compilation.txt
lisp/progmodes/compile.el
test/lisp/progmodes/compile-tests.el