Skip to content
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

Avoid evaluating void variables #737

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haselwarter
Copy link
Contributor

The last unless case of unicode-tokens-copy-configuration-variables tries to evaluate variables which may be undefined via symbol-value, which leads to an error. This commit adds a check to make sure the variables are only accessed if bound.

How this ever worked without errors I don't know...

The last `unless` case of `unicode-tokens-copy-configuration-variables` tries
to evaluate variables which may be undefined via `symbol-value`, which leads to
an error. This commit adds a check to make sure the variables are only accessed
if bound.
@Matafou
Copy link
Contributor

Matafou commented Sep 5, 2024

Hi. thanks for the PR. Sorry for the delay...

Do we really want this? If one uses unicode-tokens.el then isn't it mandatory to have token-symbol-map defined? If yes then failing looks good to me so that the user knows what is missing. If no then we should either do what this PR does, or decide to default to something else.

@cpitclaudel and @hendriktews what do you think?

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