Skip to content

fix bug with keylist#7

Open
makoshark wants to merge 1 commit intopolymode:masterfrom
makoshark:keylist_bugfix
Open

fix bug with keylist#7
makoshark wants to merge 1 commit intopolymode:masterfrom
makoshark:keylist_bugfix

Conversation

@makoshark
Copy link

@makoshark makoshark commented Mar 21, 2026

Loading this module causes this error on startup:

poly-R.el:57:11: Error: Uneven number of key/definition pairs

The issue seems 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.

This is a 1-line (2 character!) patch but is essential to even use this.

The old alist format '(("key" . func)) causes an "Uneven number of key/definition pairs" error at load time.

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.
@makoshark
Copy link
Author

Please upload a new version to MELPA as well. And thank you for maintaining poly-noweb. I've been using it for many years!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant