[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 d6542ea: Avoid errors in zone.el when there's ove
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 d6542ea: Avoid errors in zone.el when there's overlay at EOB |
Date: |
Fri, 16 Nov 2018 14:53:26 -0500 (EST) |
branch: emacs-26
commit d6542ea0f032d154da5a6e896a860adc9176a00a
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Avoid errors in zone.el when there's overlay at EOB
* lisp/play/zone.el (zone): Make sure the window-end position
is calculated accurately, to avoid errors from
buffer-substring. (Bug#33384)
---
lisp/play/zone.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/play/zone.el b/lisp/play/zone.el
index 4584d26..75f1364 100644
--- a/lisp/play/zone.el
+++ b/lisp/play/zone.el
@@ -109,7 +109,7 @@ If the element is a function or a list of a function and a
number,
(save-window-excursion
(let ((f (selected-frame))
(outbuf (get-buffer-create "*zone*"))
- (text (buffer-substring (window-start) (window-end)))
+ (text (buffer-substring (window-start) (window-end nil t)))
(wp (1+ (- (window-point)
(window-start)))))
(put 'zone 'orig-buffer (current-buffer))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 d6542ea: Avoid errors in zone.el when there's overlay at EOB,
Eli Zaretskii <=