[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat a27d62ea36 2/2: Declare pos-bol and pos-eol as s
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat a27d62ea36 2/2: Declare pos-bol and pos-eol as side-effect-free |
Date: |
Sat, 7 Jan 2023 14:57:25 -0500 (EST) |
branch: externals/compat
commit a27d62ea360eac9e1ea4d668348079e19c50e81e
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Declare pos-bol and pos-eol as side-effect-free
---
compat-29.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/compat-29.el b/compat-29.el
index 0527ee6986..194e87f75a 100644
--- a/compat-29.el
+++ b/compat-29.el
@@ -133,6 +133,7 @@ character position on the logical line. See
`vertical-motion' for
movement by screen lines.
This function does not move point. Also see `line-beginning-position'."
+ (declare (side-effect-free t))
(let ((inhibit-field-text-motion t))
(line-beginning-position n)))
@@ -146,6 +147,7 @@ position of the last character in logical order, i.e. the
largest
character position on the line.
This function does not move point. Also see `line-end-position'."
+ (declare (side-effect-free t))
(let ((inhibit-field-text-motion t))
(line-end-position n)))