branch: elpa/doc-show-inline commit 9c7f489a41ab89400c888b1e9038fafe2944e95b Author: Campbell Barton <ideasma...@gmail.com> Commit: Campbell Barton <ideasma...@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