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

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

[nongnu] elpa/tuareg b4d09cd 03/10: Remove duplicates from compilation-e


From: ELPA Syncer
Subject: [nongnu] elpa/tuareg b4d09cd 03/10: Remove duplicates from compilation-error-regexp-alist{-alist}
Date: Fri, 30 Jul 2021 16:57:26 -0400 (EDT)

branch: elpa/tuareg
commit b4d09cd60e68fe4797e6e7f03099527845c94f5a
Author: Mattias EngdegÄrd <mattiase@acm.org>
Commit: Mattias EngdegÄrd <mattiase@acm.org>

    Remove duplicates from compilation-error-regexp-alist{-alist}
    
    This makes it easier to test changes by re-evaluating the file
    without accretion of junk in these variables.
---
 tuareg.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tuareg.el b/tuareg.el
index 8cf560c..955ab45 100644
--- a/tuareg.el
+++ b/tuareg.el
@@ -3179,11 +3179,15 @@ Short cuts for interactions with the REPL:
   "Regular expression matching the error messages produced by 
ocamlc/ocamlopt.")
 
 (when (boundp 'compilation-error-regexp-alist-alist)
+  (setq compilation-error-regexp-alist-alist
+        (assq-delete-all 'ocaml compilation-error-regexp-alist-alist))
   (push `(ocaml ,tuareg--error-regexp 3 (4 . 5) (6 . 7) (8) 1
                 (8 font-lock-function-name-face))
         compilation-error-regexp-alist-alist))
 
 (when (boundp 'compilation-error-regexp-alist)
+  (setq compilation-error-regexp-alist
+        (delq 'ocaml compilation-error-regexp-alist))
   (push 'ocaml compilation-error-regexp-alist)
 
   (eval-after-load 'caml



reply via email to

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