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

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

[nongnu] elpa/hl-block-mode 08e4b2b21e: Fix compatibility for pos-bol/eo


From: ELPA Syncer
Subject: [nongnu] elpa/hl-block-mode 08e4b2b21e: Fix compatibility for pos-bol/eol for emacs <29.1
Date: Fri, 13 Jan 2023 08:00:58 -0500 (EST)

branch: elpa/hl-block-mode
commit 08e4b2b21e012eea7d48c52921556d28ccbf7039
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Fix compatibility for pos-bol/eol for emacs <29.1
---
 hl-block-mode.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/hl-block-mode.el b/hl-block-mode.el
index 42db0887e8..1aa5c0fa2c 100644
--- a/hl-block-mode.el
+++ b/hl-block-mode.el
@@ -25,6 +25,18 @@
   (require 'pcase))
 
 
+;; ---------------------------------------------------------------------------
+;; 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
 



reply via email to

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