branch: elpa/slime
commit 9b59a6dcf1c1210463b5a68ff3db21f8af62233d
Author: sczi <[email protected]>
Commit: Stas Boukarev <[email protected]>
fix for slime-after-change-function in narrowed regions
---
contrib/slime-presentations.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/slime-presentations.el b/contrib/slime-presentations.el
index ecc2942aebc..6d92e743a1c 100644
--- a/contrib/slime-presentations.el
+++ b/contrib/slime-presentations.el
@@ -324,8 +324,8 @@ string or buffer `object'."
"Check all presentations within and adjacent to the change.
When a presentation has been altered, change it to plain text."
(let ((inhibit-modification-hooks t))
- (let ((real-start (max 1 (1- start)))
- (real-end (min (1+ (buffer-size)) (1+ end)))
+ (let ((real-start (max (point-min) (1- start)))
+ (real-end (min (point-max) (1+ end)))
(any-change nil))
;; positions around the change
(slime-for-each-presentation-in-region