Skip to content

Fix "add-to-list" compilation error. #1179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2025

Conversation

thattemperature
Copy link
Contributor

Compilation error:
error ‘add-to-list’ can’t use lexical var ‘environments’; use ‘push’ or ‘cl-pushnew’

In add-to-list document string:
This is meant to be used for adding elements to configuration
variables, such as adding a directory to a path variable
like ‘load-path’, but please do not abuse it to construct
arbitrary lists in Elisp code, where using ‘push’ or ‘cl-pushnew’
will get you more efficient code.

@manateelazycat manateelazycat merged commit 175e3a2 into emacs-eaf:master Aug 13, 2025
@manateelazycat
Copy link
Member

Thanks

@thattemperature thattemperature deleted the fix-add-to-list branch August 17, 2025 05:42
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.

2 participants