branch: externals/auto-overlays
commit 216dbc98d18a82bfbb6d9c2b9c08df99da836dcc
Author: tsc25 <[email protected]>
Commit: Toby S. Cubitt <[email protected]>
Use 'push' instead of 'add-to-line' in auto-o-schedule-extend-line
to avoid mysterious "stack overflow in equal" error.
---
auto-overlay-line.el | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/auto-overlay-line.el b/auto-overlay-line.el
index 00484e8..0f39df0 100644
--- a/auto-overlay-line.el
+++ b/auto-overlay-line.el
@@ -94,17 +94,15 @@
(cons 'auto-o-schedule-extend-line
(overlay-get o-new 'modification-hooks)))
;; return new overlay
- o-new)
-)
+ o-new))
(defun auto-o-schedule-extend-line (o-self modified &rest unused)
;; All line overlay modification hooks are set to this function, which
;; schedules `auto-o-extend-line' to run after any suicide functions have
;; been called, but before the overlays are updated.
- (unless modified (add-to-list 'auto-o-pending-post-suicide
- (list 'auto-o-extend-line o-self)))
-)
+ (unless modified
+ (push (list 'auto-o-extend-line o-self) auto-o-pending-post-suicide)))
@@ -140,8 +138,7 @@
(auto-o-update-exclusive (overlay-get o-self 'set-id)
(overlay-end o-self) end
(overlay-get o-self 'priority) nil))
- ))))
-)
+ )))))
;; auto-overlay-line.el ends here