59e0d31b0a
It turns out `file-directory-p' and `file-exists-p' return t when passed the empty string. This is sort of unexpected, and leads to the logic in `sclang-make-options' choosing to pass -d and -l with unpredictable values (default-directory) to sclang. A default of "" (or -1) is pretty unidiomatic for elisp, so we change the default of user option `sclang-runtime-directory', `sclang-library-configuration-file' and `sclang-udp-port' to nil, and adjust `sclang-make-options' accordingly. While we're here, we can eliminate the use of `cl-flet'. Additionally, `sclang-eval-sync' uses `find' which is really an alias for `cl-find' which and can be replaced with a call to the built-in function `assoc'. This is faster, and the last dependency on the cl package, which we can now remove (obsolete since emacs 27). |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
sclang-browser.el | ||
sclang-dev.el | ||
sclang-document.el | ||
sclang-help.el | ||
sclang-interp.el | ||
sclang-keys.el | ||
sclang-language.el | ||
sclang-menu.el | ||
sclang-minor-mode.el | ||
sclang-mode.el | ||
sclang-server.el | ||
sclang-util.el | ||
sclang-vars.el.in | ||
sclang-widgets.el | ||
sclang.el |