Skip to content

Commit 108acd1

Browse files
committed
Merge pull request #1319 from rasendubi/adaptive-fill-mode
Enable adaptive-fill-mode
2 parents 3337c9a + e3cfd09 commit 108acd1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

haskell-mode.el

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,6 @@ Minor modes that work well with `haskell-mode':
793793
(setq-local paragraph-separate (concat " *$\\| *\\({-\\|-}\\) *$\\|" page-delimiter))
794794
(setq-local fill-paragraph-function 'haskell-fill-paragraph)
795795
;; (setq-local adaptive-fill-function 'haskell-adaptive-fill)
796-
(setq-local adaptive-fill-mode nil)
797796
(setq-local comment-start "-- ")
798797
(setq-local comment-padding 0)
799798
(setq-local comment-start-skip "[-{]-[ \t]*")

tests/haskell-mode-tests.el

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ the beginning of the buffer.
297297

298298
(ert-deftest fill-comment-2 ()
299299
(check-fill '("{- a b c d e"
300-
"f g h i j"
301-
"k -}")
300+
" f g h i j"
301+
" k -}")
302302
'("{- @a b c d e f g h i j k -}")))
303303

304304
(ert-deftest fill-comment-3 ()
@@ -322,7 +322,7 @@ the beginning of the buffer.
322322
(ert-deftest fill-comment-5 ()
323323
(check-fill '(" {-"
324324
" a b c d e"
325-
"f g h i"
325+
" f g h i"
326326
" -}")
327327
'(" {-" " @a b c d e f g h i" " -}")))
328328

@@ -398,7 +398,6 @@ Also should respect 10 column fill."
398398
as defined, just the content should move properly.
399399
400400
Also should respect 10 column fill."
401-
:expected-result :failed
402401
(check-fill '(" -- a b"
403402
" -- c d e"
404403
" -- f g h"
@@ -412,7 +411,6 @@ as defined, just the content should move properly. Following
412411
lines should take position from second line.
413412
414413
Also should respect 10 column fill."
415-
:expected-result :failed
416414
(check-fill '(" -- a b"
417415
" -- c d e"
418416
" -- f g h"

0 commit comments

Comments
 (0)