]> git.eshelyaron.com Git - sweep.git/commitdiff
PORT: don't depend on pos-bol added in Emacs 29
authorEshel Yaron <me@eshelyaron.com>
Sun, 11 Sep 2022 20:53:01 +0000 (23:53 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Sep 2022 20:53:01 +0000 (23:53 +0300)
sweep.el

index 490dd6e35e550faf555f0349b3c01753c25296e9..66dbb5a386179af1e2e14c0d760cb601ab05b682 100644 (file)
--- a/sweep.el
+++ b/sweep.el
@@ -1114,7 +1114,7 @@ Interactively, a prefix arg means to prompt for BUFFER."
   (save-excursion
     (end-of-line)
     (when-let ((start-of-ite (nth 1 (syntax-ppss))))
-      (when (<= (pos-bol) start-of-ite)
+      (when (<= (line-beginning-position) start-of-ite)
         (goto-char start-of-ite)
         (let ((col (current-column)))
           (when (looking-at-p (rx "(   "))