Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions haskell-indentation.el
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ NOFAIL is non-NIL."
(when nofail
(car rev)))))

(defvar haskell-indentation-dyn-first-position nil
"") ; FIXME
(defvar haskell-indentation-dyn-last-direction nil
"") ; FIXME
(defvar haskell-indentation-dyn-last-indentations nil
Expand Down Expand Up @@ -273,8 +271,6 @@ indentation points to the right, we switch going to the left."
(haskell-indentation-next-indentation ci inds 'nofail)
cursor-in-whitespace))
(setq haskell-indentation-dyn-last-direction 'right
haskell-indentation-dyn-first-position
(haskell-indentation-current-indentation)
haskell-indentation-dyn-last-indentations inds)))))

(defun haskell-indentation-indent-line-repeat ()
Expand Down Expand Up @@ -306,12 +302,6 @@ indentation points to the right, we switch going to the left."
ci haskell-indentation-dyn-last-indentations 'nofail))
;; but failed, switch to left
(setq haskell-indentation-dyn-last-direction 'left)
;; and skip to the point where the user started pressing TABs.
;; except if there are <= 2 indentation points, because this
;; behavior is very confusing in that case
(when (< 2 (length haskell-indentation-dyn-last-indentations))
(haskell-indentation-reindent-to
haskell-indentation-dyn-first-position))
(haskell-indentation-indent-line-repeat)))
t))
(t nil)))
Expand Down