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

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

[elpa] externals/urgrep 77fcfc1916 090/115: Use `push` instead of `add-t


From: ELPA Syncer
Subject: [elpa] externals/urgrep 77fcfc1916 090/115: Use `push` instead of `add-to-list`
Date: Wed, 10 May 2023 03:00:47 -0400 (EDT)

branch: externals/urgrep
commit 77fcfc1916bc6d1b2f688b6490d7fa9b0bddf003
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>

    Use `push` instead of `add-to-list`
---
 urgrep.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/urgrep.el b/urgrep.el
index bb721e6093..1cce781064 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -404,8 +404,7 @@ This caches the default tool per-host in 
`urgrep--host-defaults'."
                    ;; this host will use different tools for different
                    ;; directories, so we can't cache anything.
                    (unless saw-vc-tool-p
-                     (add-to-list 'urgrep--host-defaults
-                                  (cons host-id tool)))
+                     (push (cons host-id tool) urgrep--host-defaults))
                    (cl-return tool)))))))
 
 (defun urgrep-get-tool (&optional tool)



reply via email to

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