using ghc-add.

This commit is contained in:
Kazu Yamamoto 2014-04-19 20:09:47 +09:00
parent f9a8361bca
commit 122c8da7b0
2 changed files with 3 additions and 3 deletions

View File

@ -160,8 +160,8 @@ nil does not display errors/warnings.
errs wrns)
(dolist (msg msgs)
(if (string-match "^Warning" msg)
(setq wrns (cons msg wrns))
(setq errs (cons msg errs))))
(ghc-add wrns msg)
(ghc-add errs msg)))
(ghc-make-file-msgs :file file :msgs (nconc errs wrns))))))
(defun ghc-display-errors ()

View File

@ -70,7 +70,7 @@
(i 0)
acc)
(while (< i len)
(setq acc (cons (format "-%d-" (aref symbol i)) acc))
(ghc-add acc (format "-%d-" (aref symbol i)))
(setq i (1+ i)))
(apply 'concat (nreverse acc))))