-
-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix running checkers on remote hosts via TRAMP.
This patch does three things: * Update `flycheck-default-executable-find` to search remote hosts when `default-directory` is a remote directory. See also the documentation for [executable-find](https://www.gnu.org/software/emacs/manual/html_node/elisp/Locating-Files.html). * Change uses of `call-process` and `start-process` to `start-file-process` which is the same as these two functions, but starts the process on a remote host when `default-directory` is a remote directory. See also the documentation for [start-file-process](https://www.gnu.org/software/emacs/manual/html_node/elisp/Asynchronous-Processes.html). * Passes the local part of `buffer-file-name` to the compile command, e.g. strips `/ssh:10.0.0.42`, since the checker is run on the remote machine where the file name must be local. See also the documentation for [file-local-name](https://www.gnu.org/software/emacs/manual/html_node/elisp/Magic-File-Names.html).
- Loading branch information
Showing
1 changed file
with
31 additions
and
17 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