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

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

[elpa] externals/vc-got 52a1813 021/145: add-to-list is better at string


From: ELPA Syncer
Subject: [elpa] externals/vc-got 52a1813 021/145: add-to-list is better at strings than cl-pushnew
Date: Thu, 9 Sep 2021 15:58:25 -0400 (EDT)

branch: externals/vc-got
commit 52a18138203332f613100afe02fdf3587b147926
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    add-to-list is better at strings than cl-pushnew
    
    cl-pushnew can add multiple copies of the same string to a list, and
    add-to-list is also probably more idiomatic in elisp.
---
 README.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 84830bd..d872ab2 100644
--- a/README.md
+++ b/README.md
@@ -12,14 +12,14 @@ make sure that `vc-got` is within your `load-path`.  You 
shouldn't
 require the library.
 
 ```emacs-lisp
-(cl-pushnew 'Got vc-handled-backends)
+(add-to-list 'vc-handled-backends 'Got)
 ```
 
 It's highly recommended to add `".got"` to the list of
 `vc-directory-exclusion-list`.
 
 ```emacs-lisp
-(cl-pushnew ".got" vc-directory-exclusion-list)
+(add-to-list 'vc-directory-exclusion-list ".got")
 ```
 
 With `use-package` something like this should be enough:
@@ -29,6 +29,6 @@ With `use-package` something like this should be enough:
   :load-path "/path/to/vc-got/"
   :defer t
   :init
-  (cl-pushnew 'Got vc-handled-backends)
-  (cl-pushnew ".got" vc-directory-exclusion-list))
+  (add-to-list 'vc-handled-backends 'Got)
+  (add-to-list 'vc-directory-exclusion-list ".got"))
 ```



reply via email to

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