Skip to content

Add OCaml compilation error regexp for M-x compile#4

Merged
bbatsov merged 1 commit intomainfrom
fix-compilation-tests
Feb 15, 2026
Merged

Add OCaml compilation error regexp for M-x compile#4
bbatsov merged 1 commit intomainfrom
fix-compilation-tests

Conversation

@bbatsov
Copy link
Owner

@bbatsov bbatsov commented Feb 15, 2026

Adds an ocaml entry to compilation-error-regexp-alist covering errors, warnings, alerts, backtraces, source-code snippets, and ancillary locations. Autoloaded via with-eval-after-load 'compile so it works as soon as compile.el loads.

The test plist uses :severity instead of :type to work around an Emacs 29 oclosure bug where buttercup's (:type . buttercup--thunk) closure tag shadows the :type keyword inside expect forms.

@bbatsov bbatsov force-pushed the fix-compilation-tests branch 2 times, most recently from 866c3f4 to eccf824 Compare February 15, 2026 20:59
Register an `ocaml` entry in `compilation-error-regexp-alist` that
handles errors, warnings, alerts, backtraces, source-code snippets,
and ancillary locations. Registration happens when a neocaml major
mode is activated.
@bbatsov bbatsov force-pushed the fix-compilation-tests branch from eccf824 to 3c3eb02 Compare February 15, 2026 21:31
@bbatsov bbatsov merged commit 3c3eb02 into main Feb 15, 2026
2 checks passed
@bbatsov bbatsov deleted the fix-compilation-tests branch February 15, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant