Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make `rustic-format-start-process' work over tramp. #4

Merged
merged 1 commit into from
May 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions rustic-rustfmt.el
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,15 @@ and it's `cdr' is a list of arguments."
(command (or (plist-get args :command)
(rustic-compute-rustfmt-args)))
(command (if (listp command) command (list command)))
(cur-buf (current-buffer)))
(cur-buf (current-buffer))
(rustfmt (rustic-rustfmt-bin)))
(setq rustic-save-pos (set-marker (make-marker) (point) (current-buffer)))
(rustic-compilation-setup-buffer err-buf dir 'rustic-format-mode t)
(--each files
(unless (file-exists-p it)
(error (format "File %s does not exist." it))))
(with-current-buffer err-buf
(let* ((c `(,(rustic-rustfmt-bin)
(let* ((c `(,rustfmt
,@(split-string rustic-rustfmt-args)
,@command "--" ,@files))
(proc (rustic-make-process :name rustic-format-process-name
Expand Down
Loading