File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -93,8 +93,10 @@ This is a child of `compilation-mode-map'.")
93
93
94
94
(when haskell-compile-ghc-filter-linker-messages
95
95
(delete-matching-lines " ^Loading package [^ \t\r\n ]+ [.]+ linking [.]+ done\\ .$"
96
- (save-excursion (goto-char compilation-filter-start)
97
- (line-beginning-position ))
96
+ (if (boundp 'compilation-filter-start ) ; ; available since Emacs 24.2
97
+ (save-excursion (goto-char compilation-filter-start)
98
+ (line-beginning-position ))
99
+ (point-min ))
98
100
(point ))))
99
101
100
102
(define-compilation-mode haskell-compilation-mode " HsCompilation"
@@ -135,7 +137,8 @@ derived from `compilation-mode'. See Info
135
137
node `(haskell-mode)compilation' for more details."
136
138
(interactive " P" )
137
139
(save-some-buffers (not compilation-ask-about-save)
138
- compilation-save-buffers-predicate)
140
+ (if (boundp 'compilation-save-buffers-predicate ) ; ; since Emacs 24.1(?)
141
+ compilation-save-buffers-predicate))
139
142
(let* ((cabdir (haskell-cabal-find-dir))
140
143
(command1 (if (eq edit-command '- )
141
144
haskell-compile-cabal-build-alt-command
You can’t perform that action at this time.
0 commit comments