branch: elpa/spell-fu
commit bd39312462b057dd4876b12211fe9d0b86d2e34c
Author: Campbell Barton <[email protected]>
Commit: Campbell Barton <[email protected]>
Fix compatibility for pos-bol/eol for emacs <29.1
---
spell-fu.el | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/spell-fu.el b/spell-fu.el
index 440bcaf564..6949ba5017 100644
--- a/spell-fu.el
+++ b/spell-fu.el
@@ -40,7 +40,6 @@
;;; Code:
-
;; ---------------------------------------------------------------------------
;; Require Dependencies
@@ -51,6 +50,19 @@
;; For `string-blank-p'.
(require 'subr-x)
+
+;; ---------------------------------------------------------------------------
+;; Compatibility
+
+(when (version< emacs-version "29.1")
+ (defsubst pos-bol (&optional n)
+ "Return the position at the line beginning."
+ (line-beginning-position n))
+ (defsubst pos-eol (&optional n)
+ "Return the position at the line end."
+ (line-end-position n)))
+
+
;; ---------------------------------------------------------------------------
;; Custom Variables