Rename alist.el to al.el

After switching my namespace separator from "/" to "-" the function,
`alist-get`, clashed (surprise!) with the pre-existing function, `alist-get`. As
I was struggling to debug my broken Emacs (it broke bc Emacs 27 rolled out), and
I changed the module name, "alist", to "al" attempting to defuse the issue.
This commit is contained in:
William Carroll 2020-09-02 14:00:43 +01:00
parent 1fe5d0373e
commit c17796a60d
10 changed files with 84 additions and 108 deletions

View file

@ -23,7 +23,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'prelude)
(require 'alist)
(require 'al)
(require 'set)
(require 'string)
@ -38,9 +38,9 @@
;; Assert that no keybindings are colliding.
(prelude-assert
(= (alist-count kbd-prefixes)
(= (al-count kbd-prefixes)
(->> kbd-prefixes
alist-values
al-values
set-from-list
set-count)))
@ -53,10 +53,10 @@
Values for F include:
- workspace
- x11"
(prelude-assert (alist-has-key? f kbd-prefixes))
(prelude-assert (al-has-key? f kbd-prefixes))
(string-format
"%s-%s"
(alist-get f kbd-prefixes)
(al-get f kbd-prefixes)
x))
(defun kbd-for (f x)