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

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

[nongnu] elpa/evil-numbers 743e60549c 2/2: Cleanup: replace point-at-bol


From: ELPA Syncer
Subject: [nongnu] elpa/evil-numbers 743e60549c 2/2: Cleanup: replace point-at-bol/eol with pos-bol/eol
Date: Fri, 13 Jan 2023 03:59:02 -0500 (EST)

branch: elpa/evil-numbers
commit 743e60549c1efea562e3fc8d6cd713e2ce7653b3
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Cleanup: replace point-at-bol/eol with pos-bol/eol
    
    Quiet deprecation warning.
---
 evil-numbers.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/evil-numbers.el b/evil-numbers.el
index 8e609197a6..2d1d396c0f 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -627,8 +627,8 @@ Return non-nil on success, leaving the point at the end of 
the number."
                       ;; The caller may use a range that spans lines to
                       ;; allow searching and finding items across
                       ;; multiple lines (currently used for selection).
-                      (max beg (point-at-bol))
-                      (min end (point-at-eol))
+                      (max beg (pos-bol))
+                      (min end (pos-eol))
                       padded
                       range-check-fn
                       (lambda (n) (+ n amount)))
@@ -711,7 +711,7 @@ negative number to a positive will result in a number with 
a + sign."
     (let ((point-next
            (save-excursion
              (when (evil-numbers--inc-at-pt-impl-with-search
-                    amount (point-at-bol) (point-at-eol) padded
+                    amount (pos-bol) (pos-eol) padded
                     ;; Optional range checking function, only needed when
                     ;; `evil-numbers-use-cursor-at-end-of-number' is not nil.
                     (cond



reply via email to

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