tlikonen / wcheck-mode

General-purpose text-checker interface for Emacs text editor
51 stars 6 forks source link

Fix `wcheck--language-exists-p` if executable does not exist #12

Closed f-fr closed 6 years ago

f-fr commented 6 years ago

The function executable-find might return nil if program does not exist. In this case file-regular-p raises a nil error. We now check for nil explicitly.

tlikonen commented 6 years ago

Thanks for noticing this and the pull request!