emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auto-overlays 216dbc9 55/93: Use 'push' instead of 'add


From: Stefan Monnier
Subject: [elpa] externals/auto-overlays 216dbc9 55/93: Use 'push' instead of 'add-to-line' in auto-o-schedule-extend-line
Date: Mon, 14 Dec 2020 13:00:37 -0500 (EST)

branch: externals/auto-overlays
commit 216dbc98d18a82bfbb6d9c2b9c08df99da836dcc
Author: tsc25 <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]