From 904359d1208adbee21888355f29344c235fa56ea Mon Sep 17 00:00:00 2001 From: Benjamin Mako Hill Date: Sat, 21 Mar 2026 17:45:01 +0900 Subject: [PATCH] fix bug with keylist Loading this module causes this error on startup: ```poly-R.el:57:11: Error: Uneven number of key/definition pairs``` The issueseems to be a compatibility with newer versions of polymode. The ~2026 version seems to appears to now uses define-keymap internally and expects a flat list of key/function pairs rather than an alist. The old alist format '(("key" . func)) causes an "Uneven number of key/definition pairs" error at load time. --- poly-noweb.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poly-noweb.el b/poly-noweb.el index 586a797..f239df1 100644 --- a/poly-noweb.el +++ b/poly-noweb.el @@ -114,7 +114,7 @@ not a function, use `poly-fallback-mode'." poly-noweb-pdflatex-exporter poly-noweb-lualatex-exporter poly-noweb-xelatex-exporter) - :keylist '(("<" . poly-noweb-electric-<))) + :keylist '("<" poly-noweb-electric-<)) (defun poly-noweb-electric-< (arg) "Auto insert noweb chunk if at bol followed by white space.