From c17796a60dba0c81ffb03ad277063a7eee2e1736 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 2 Sep 2020 14:00:43 +0100 Subject: 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. --- emacs/.emacs.d/wpc/kbd.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'emacs/.emacs.d/wpc/kbd.el') diff --git a/emacs/.emacs.d/wpc/kbd.el b/emacs/.emacs.d/wpc/kbd.el index d3a4224e43..b456f30cba 100644 --- a/emacs/.emacs.d/wpc/kbd.el +++ b/emacs/.emacs.d/wpc/kbd.el @@ -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) -- cgit 1.4.1