d12frosted / flyspell-correct

Distraction-free words correction with flyspell via selected interface.
Other
200 stars 14 forks source link

Fix void variable word (#9) #15

Closed mrBliss closed 8 years ago

mrBliss commented 8 years ago

I verified that I got the error without your workaround and that I don't get it with my (proper) fix.

My explanation (the commit message of fe6abbe):

When a lambda (closure) is quoted, the byte-compiler and/or interpreter (probably, I haven't verified it) doesn't know that the word variable is a lexical reference. When later invoking the lambda, the word variable will be void as it was not detected as part of the closure.

d12frosted commented 8 years ago

Thank you for providing better solution for that issue :+1: Somehow I totally missed that point. Like your solution 😸

Cherry-picked into master, you can safely delete your branch.