[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/spell-fu bd39312462: Fix compatibility for pos-bol/eol for
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/spell-fu bd39312462: Fix compatibility for pos-bol/eol for emacs <29.1 |
Date: |
Fri, 13 Jan 2023 08:02:17 -0500 (EST) |
branch: elpa/spell-fu
commit bd39312462b057dd4876b12211fe9d0b86d2e34c
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/spell-fu bd39312462: Fix compatibility for pos-bol/eol for emacs <29.1,
ELPA Syncer <=