branch: externals/urgrep
commit 77fcfc1916bc6d1b2f688b6490d7fa9b0bddf003
Author: Jim Porter <jporterb...@gmail.com>
Commit: Jim Porter <jporterb...@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