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

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

[nongnu] elpa/pacmacs fad3786449 361/472: Use push instead of add-to-lis


From: ELPA Syncer
Subject: [nongnu] elpa/pacmacs fad3786449 361/472: Use push instead of add-to-list (#173)
Date: Thu, 6 Jan 2022 21:59:39 -0500 (EST)

branch: elpa/pacmacs
commit fad37864493a0a6ed420aeddf09c014512bab5e9
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>

    Use push instead of add-to-list (#173)
    
    > This is handy to add some elements to configuration variables,
    > but please do not abuse it in Elisp code, where you are usually
    > better off using `push' or `cl-pushnew'.
---
 pacmacs.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pacmacs.el b/pacmacs.el
index e7a6079ab5..84e60017cc 100644
--- a/pacmacs.el
+++ b/pacmacs.el
@@ -443,8 +443,8 @@
     (pacmacs--terrify-ghost terrified-ghost))
 
   (dolist (ghost pacmacs--ghosts)
-    (add-to-list 'pacmacs--terrified-ghosts
-                 (pacmacs--terrify-ghost ghost)))
+    (push (pacmacs--terrify-ghost ghost)
+          pacmacs--terrified-ghosts))
   (setq pacmacs--ghosts nil))
 
 (defun pacmacs--unterrify-timed-out-ghosts ()



reply via email to

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