Skip to content

Commit fb2d922

Browse files
committed
Replace obsoleted functions
point-at-bol and point-at-eol will be obsoleted since Emacs 29.1
1 parent 9050341 commit fb2d922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

haskell-collapse.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"Returns `t' if line is empty or composed only of whitespace."
4444
(save-excursion
4545
(beginning-of-line)
46-
(= (point-at-eol)
46+
(= (line-end-position)
4747
(progn (skip-chars-forward "[:blank:]") (point)))))
4848

4949
(defun haskell-indented-block ()
@@ -92,7 +92,7 @@ indentation if dir=-1"
9292
(save-excursion
9393
(goto-char (point-max))
9494
(while (zerop (forward-line -1))
95-
(goto-char (point-at-bol))
95+
(goto-char (line-beginning-position))
9696
(when (= (current-indentation) 0) (haskell-hide-toggle)))))
9797

9898
(defvar haskell-collapse-mode-map

0 commit comments

Comments
 (0)