[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/doc-show-inline 9c7f489a41: Fix compatibility for pos-bol/
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/doc-show-inline 9c7f489a41: Fix compatibility for pos-bol/eol for emacs <29.1 |
Date: |
Fri, 13 Jan 2023 07:59:52 -0500 (EST) |
branch: elpa/doc-show-inline
commit 9c7f489a41ab89400c888b1e9038fafe2944e95b
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Fix compatibility for pos-bol/eol for emacs <29.1
---
doc-show-inline.el | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/doc-show-inline.el b/doc-show-inline.el
index f7c8dc01a4..f2ebc7cbf8 100644
--- a/doc-show-inline.el
+++ b/doc-show-inline.el
@@ -42,6 +42,18 @@
(require 'imenu)
+;; ---------------------------------------------------------------------------
+;; 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/doc-show-inline 9c7f489a41: Fix compatibility for pos-bol/eol for emacs <29.1,
ELPA Syncer <=