[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/parseclj eedc0d812e 168/185: Update docstring and metion E
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/parseclj eedc0d812e 168/185: Update docstring and metion Emacs 27 alternative |
Date: |
Tue, 28 Dec 2021 14:05:33 -0500 (EST) |
branch: elpa/parseclj
commit eedc0d812e7e154394ea9bae3fa7fa8e8f70f12c
Author: Arne Brasseur <arne@arnebrasseur.net>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>
Update docstring and metion Emacs 27 alternative
---
parseclj.el | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/parseclj.el b/parseclj.el
index d10acaef4e..13becab5be 100644
--- a/parseclj.el
+++ b/parseclj.el
@@ -37,7 +37,9 @@
(defun parseclj-alist (&rest kvs)
"Create an association list from the given keys and values KVS.
Arguments are simply provided in sequence, rather than as lists or cons cells.
-For example: (a-alist :foo 123 :bar 456)"
+For example: (parseclj-alist :foo 123 :bar 456)"
+ ;; Emacs 27:
+ ;; (map-into kvs 'alist)
(mapcar (lambda (kv) (cons (car kv) (cadr kv))) (seq-partition kvs 2)))
(defun parseclj-hash-table (&rest kvs)
@@ -47,7 +49,9 @@ or cons cells. As \"test\" for the hash table, equal is used.
The
hash table is created without extra storage space, so with a size
equal to amount of key-value pairs, since it is assumed to be
treated as immutable.
-For example: (a-hash-table :foo 123 :bar 456)"
+For example: (parseclj-hash-table :foo 123 :bar 456)"
+ ;; Emacs 27:
+ ;; (map-into kvs 'hash-table)
(let* ((kv-pairs (seq-partition kvs 2))
(hash-map (make-hash-table :test 'equal :size (length kv-pairs))))
(seq-do (lambda (pair)
@@ -56,8 +60,11 @@ For example: (a-hash-table :foo 123 :bar 456)"
hash-map))
(defun parseclj-alist-assoc (coll k v)
- "Like parseclj-alist-assoc but actually works as advertised, not
-introducing duplicate keys"
+ "Associate a key K with a value V in the association list COLL
+
+Returns a new alist (does not mutate its argument). If an entry
+with the same key is present it will be replaced, otherwise the
+new kv-pair is added to the head of the list."
(if (map-contains-key coll k)
(mapcar (lambda (entry)
(if (equal (car entry) k)
- [nongnu] elpa/parseclj 6fdf22a553 062/185: Update license, fix dependencies, (continued)
- [nongnu] elpa/parseclj 6fdf22a553 062/185: Update license, fix dependencies, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 5fbe901cba 071/185: Parse/unparse :tag, rountrip AST, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 6e0dc9516c 093/185: Add missing require, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj b79b3a5438 098/185: Add documentation to `parseclj-ast.el`, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 1b071d7775 104/185: Add documentation to `parseedn` module, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj e1cb9e5514 113/185: Add a few more node accessors., ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 80e92cdf9f 001/185: Move into its own repo, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 2588470302 116/185: Merge pull request #9 from lambdaisland/docstrings-and-conventions, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 92396d11cf 127/185: Merge pull request #17 from lambdaisland/travis-evm, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj f87278a70e 135/185: Merge pull request #18 from clojure-emacs/doc-&-style-fixes-part-2, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj eedc0d812e 168/185: Update docstring and metion Emacs 27 alternative,
ELPA Syncer <=
- [nongnu] elpa/parseclj 815ba87a77 137/185: Merge pull request #19 from clojure-emacs/update-readme, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 9e0b51e39c 160/185: revert tabs to spaces, address minor review comments, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj bdd6489128 003/185: add travis badge, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj f6b8ad665c 004/185: Fix .travis.yml, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 3ec632ed66 008/185: Travis show Emacs version, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 7cf7dc99cd 011/185: Travis: only install the necessary ppa/package for each matrix line, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj 710511ff79 013/185: Seems these packages dont actually package the versioned executable names, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj b2e97ecb57 017/185: Lets try that again #travis, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj d7adaa5177 018/185: Lets try that again #travis, ELPA Syncer, 2021/12/28
- [nongnu] elpa/parseclj abe7edb04b 019/185: Bunch of refactoring, but we're green now, supposedly, ELPA Syncer, 2021/12/28