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

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

[nongnu] elpa/yaml-mode 2f913f0657 1/2: Fix byte-compile warnings


From: ELPA Syncer
Subject: [nongnu] elpa/yaml-mode 2f913f0657 1/2: Fix byte-compile warnings
Date: Sat, 3 Sep 2022 14:59:10 -0400 (EDT)

branch: elpa/yaml-mode
commit 2f913f06579aac7d0a71a3610004b85153581fa6
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>

    Fix byte-compile warnings
    
    point-at-bol and point-at-eol are obsoleted since Emacs 29.1.
---
 yaml-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/yaml-mode.el b/yaml-mode.el
index 666f1281b4..07ac2247bc 100644
--- a/yaml-mode.el
+++ b/yaml-mode.el
@@ -306,8 +306,8 @@ artificially limited to the value of
   (if (eolp) (goto-char (1+ (point))))
   (unless (or (eobp) (>= (point) bound))
     (let ((begin (point))
-          (end (min (1+ (point-at-eol)) bound)))
-      (goto-char (point-at-bol))
+          (end (min (1+ (line-end-position)) bound)))
+      (goto-char (line-beginning-position))
       (while (and (looking-at yaml-blank-line-re)
                   (not (bobp)))
         (forward-line -1))
@@ -426,7 +426,7 @@ margin."
 otherwise do nothing."
   (interactive)
   (save-excursion
-    (goto-char (point-at-bol))
+    (goto-char (line-beginning-position))
     (while (and (looking-at-p yaml-blank-line-re) (not (bobp)))
       (forward-line -1))
     (let ((nlines yaml-block-literal-search-lines)



reply via email to

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