Skip to content

Commit 1f7fe67

Browse files
authored
Merge pull request #31 from clojure-emacs/remove-a-el-part-2
Remove remaining a-list call, move a.el to be test-only
2 parents 507720a + ba04dbe commit 1f7fe67

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Unreleased
22

3+
## 1.0.1 (2021-09-27)
4+
5+
- Remove remaining a.el usage
6+
37
## 1.0.0 (2021-09-27)
48

59
- Added a `:read-one` option to read/parse a single form at a time

parseclj-ast.el

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
;;; Code:
2929

30-
(require 'a)
3130
(require 'seq)
3231
(require 'subr-x)
3332
(require 'parseclj-lex)

parseclj-lex.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Tokens at a mimimum have these attributes
7474
- POS: the position in the input, starts from 1 (like point)
7575
7676
Other ATTRIBUTES can be given as a flat list of key-value pairs."
77-
(apply 'a-list :token-type type :form form :pos pos attributes))
77+
(apply #'parseclj-alist :token-type type :form form :pos pos attributes))
7878

7979
(defun parseclj-lex-error-token (pos &optional error-type)
8080
"Create a lexer error token starting at POS.

parseclj.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
;;; Code:
3232

3333
(require 'map)
34-
(require 'parseclj-parser)
35-
(require 'parseclj-ast)
34+
(require 'seq)
3635

3736
(defun parseclj-alist (&rest kvs)
3837
"Create an association list from the given keys and values KVS.
@@ -42,6 +41,9 @@ For example: (parseclj-alist :foo 123 :bar 456)"
4241
;; (map-into kvs 'alist)
4342
(mapcar (lambda (kv) (cons (car kv) (cadr kv))) (seq-partition kvs 2)))
4443

44+
(require 'parseclj-parser)
45+
(require 'parseclj-ast)
46+
4547
(defun parseclj-hash-table (&rest kvs)
4648
"Create a hash table from the given keys and values KVS.
4749
Arguments are simply provided in sequence, rather than as lists

test/parseclj-ast-test.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
;;; Code
2929

30+
(require 'a)
3031
(require 'ert)
3132
(require 'parseclj-ast)
3233

0 commit comments

Comments
 (0)