forked from emacs-lsp/lsp-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some bytecompiler warnings/gccemacs errors (emacs-lsp#1767)
* [Cask] Compile lsp-{protocol, mode}.el first this exposes ordering issues that might otherwise get masked by other lsp-*.el files requiring lsp-mode.el before lsp-mode.el itself is byte-compiled. In its current form, the Cask file will now lead to lsp-mode.el and lsp-protocol.el being compiled twice, but I don't believe this causes any issues except for the extra second or so of compile time. I'd rather not list all *.el files explicitly; instead, I'd prefer Cask to ignore duplicate files automatically (or, in an ideal world, to analyze `require` forms automatically, warn about cycles and otherwise compile in the correct order). * Eval-when-compile dash-expand:&lsp-* this fixes 10 compiler warnings (and actual runtime errors on gccemacs). Thanks to @yyoncho and @ericdallo for figuring out this issue * Fix several reference-to-free-variable warnings this separates a number of defcustoms from the accompanying logic (lsp-signature in particular), so feel free to drop this commit if you think it hurts readability * Fix late macro definitions lsp-with-current-buffer, lsp-with-filename
- Loading branch information
1 parent
21cfcf5
commit ff19e36
Showing
2 changed files
with
60 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters