Skip to content

Commit 99612ac

Browse files
committed
Merge pull request #841 from k-bx/764-skip-space-prefixes
Skip space prefixes in error-messages
2 parents b8ceede + 6e5069e commit 99612ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haskell-compile.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The `%s' placeholder is replaced by the current buffer's filename."
6868

6969
(defconst haskell-compilation-error-regexp-alist
7070
`((,(concat
71-
"^\\(?1:[^ \t\r\n]+?\\):"
71+
"^ *\\(?1:[^ \t\r\n]+?\\):"
7272
"\\(?:"
7373
"\\(?2:[0-9]+\\):\\(?4:[0-9]+\\)\\(?:-\\(?5:[0-9]+\\)\\)?" ;; "121:1" & "12:3-5"
7474
"\\|"
@@ -97,7 +97,7 @@ This is a child of `compilation-mode-map'.")
9797
"Local `compilation-filter-hook' for `haskell-compilation-mode'."
9898

9999
(when haskell-compile-ghc-filter-linker-messages
100-
(delete-matching-lines "^Loading package [^ \t\r\n]+ [.]+ linking [.]+ done\\.$"
100+
(delete-matching-lines "^ *Loading package [^ \t\r\n]+ [.]+ linking [.]+ done\\.$"
101101
(if (boundp 'compilation-filter-start) ;; available since Emacs 24.2
102102
(save-excursion (goto-char compilation-filter-start)
103103
(line-beginning-position))

0 commit comments

Comments
 (0)