From: Eshel Yaron Date: Sun, 11 Sep 2022 20:53:01 +0000 (+0300) Subject: PORT: don't depend on pos-bol added in Emacs 29 X-Git-Tag: v0.2.1~10 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=49214a669bbd4cb8504314eb0a70d1793a67bb9d;p=dict.git PORT: don't depend on pos-bol added in Emacs 29 --- diff --git a/sweep.el b/sweep.el index 490dd6e..66dbb5a 100644 --- 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 "( "))