branch: externals/compat
commit a27d62ea360eac9e1ea4d668348079e19c50e81e
Author: Daniel Mendler <m...@daniel-mendler.de>
Commit: Daniel Mendler <m...@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)))
 

Reply via email to