branch: elpa/haskell-mode commit fb2d922399933348df9921f209d0612815e05d86 Author: Shohei YOSHIDA <syo...@gmail.com> Commit: Shohei YOSHIDA <syo...@gmail.com>
Replace obsoleted functions point-at-bol and point-at-eol will be obsoleted since Emacs 29.1 --- haskell-collapse.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haskell-collapse.el b/haskell-collapse.el index 8a73fa3887..8c4d7906f5 100644 --- a/haskell-collapse.el +++ b/haskell-collapse.el @@ -43,7 +43,7 @@ "Returns `t' if line is empty or composed only of whitespace." (save-excursion (beginning-of-line) - (= (point-at-eol) + (= (line-end-position) (progn (skip-chars-forward "[:blank:]") (point))))) (defun haskell-indented-block () @@ -92,7 +92,7 @@ indentation if dir=-1" (save-excursion (goto-char (point-max)) (while (zerop (forward-line -1)) - (goto-char (point-at-bol)) + (goto-char (line-beginning-position)) (when (= (current-indentation) 0) (haskell-hide-toggle))))) (defvar haskell-collapse-mode-map