emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-mode fb2d922399 2/4: Replace obsoleted functions


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-mode fb2d922399 2/4: Replace obsoleted functions
Date: Sun, 6 Nov 2022 06:58:48 -0500 (EST)

branch: elpa/haskell-mode
commit fb2d922399933348df9921f209d0612815e05d86
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]