@@ -138,8 +138,7 @@ positions are allowed."
138
138
(define-minor-mode haskell-indentation-mode
139
139
" Haskell indentation mode that deals with the layout rule.
140
140
It rebinds RET, DEL and BACKSPACE, so that indentations can be
141
- set and deleted as if they were real tabs. It supports
142
- `auto-fill-mode' .
141
+ set and deleted as if they were real tabs.
143
142
144
143
It is possible to render indent stops for current line as
145
144
overlays. Please read documentation for option
@@ -150,14 +149,13 @@ clashing with other modes."
150
149
:keymap haskell-indentation-mode-map
151
150
(kill-local-variable 'indent-line-function )
152
151
(kill-local-variable 'indent-region-function )
153
- ( kill-local-variable 'normal-auto-fill-function )
152
+
154
153
(when haskell-indentation-mode
155
154
(set (make-local-variable 'indent-line-function )
156
155
'haskell-indentation-indent-line )
157
156
(set (make-local-variable 'indent-region-function )
158
157
'haskell-indentation-indent-region )
159
- (set (make-local-variable 'normal-auto-fill-function )
160
- 'haskell-indentation-auto-fill-function )
158
+
161
159
(when haskell-indentation-show-indentations
162
160
(haskell-indentation-enable-show-indentations))))
163
161
@@ -187,20 +185,6 @@ NIL otherwise."
187
185
; ;----------------------------------------------------------------------------
188
186
; ; UI starts here
189
187
190
- (defun haskell-indentation-auto-fill-function ()
191
- " " ; FIXME
192
- (when (> (current-column ) fill-column)
193
- (while (> (current-column ) fill-column)
194
- (skip-syntax-backward " -" )
195
- (skip-syntax-backward " ^-" ))
196
- (let ((indent (car (last (haskell-indentation-find-indentations-safe)))))
197
- (delete-horizontal-space )
198
- (newline )
199
- (when (haskell-indentation-bird-p)
200
- (insert " >" ))
201
- (indent-to indent)
202
- (end-of-line ))))
203
-
204
188
(defun haskell-indentation-reindent-to (col &optional move )
205
189
" Reindent current line to COL, move the point there if MOVE is non-NIL."
206
190
(let* ((ci (haskell-indentation-current-indentation)))
0 commit comments