aboutsummaryrefslogtreecommitdiff
path: root/compat-29.el
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2023-01-07 20:15:01 +0100
committerDaniel Mendler <mail@daniel-mendler.de>2023-01-07 20:15:01 +0100
commita27d62ea360eac9e1ea4d668348079e19c50e81e (patch)
tree40c4a6a9f7ac419b1e898e127b8a1435d42681a3 /compat-29.el
parent060b6632c4fd429a232a81e6c85704a457c60174 (diff)
Declare pos-bol and pos-eol as side-effect-free
Diffstat (limited to 'compat-29.el')
-rw-r--r--compat-29.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat-29.el b/compat-29.el
index 0527ee6..194e87f 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)))