Skip to content

Commit 4c6b29f

Browse files
committed
Fix build for Emacs 24
1 parent a4858b9 commit 4c6b29f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

elixir-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,9 @@ just return nil."
557557
(cl-function
558558
(lambda ((symbol . spec))
559559
"Add SPEC to `compilation-error-regexp-alist-alist'."
560-
(setf (alist-get symbol compilation-error-regexp-alist-alist) spec)))
560+
(if (>= 24 emacs-major-version)
561+
(cl-pushnew (cons symbol spec) compilation-error-regexp-alist-alist)
562+
(setf (alist-get symbol compilation-error-regexp-alist-alist) spec))))
561563

562564
'((elixir-error
563565
"^== Compilation error in file \\(.*\\) ==$"

0 commit comments

Comments
 (0)