branch: externals/gtags-mode
commit 3d7bf179bb8b77e49900af039e7837a94b1948ec
Author: Jimmy Aguilar Mena <[email protected]>
Commit: Jimmy Aguilar Mena <[email protected]>
Use make-process instead of start-file-process.
---
global-xref.el | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/global-xref.el b/global-xref.el
index 771a735146..b5bd14492c 100644
--- a/global-xref.el
+++ b/global-xref.el
@@ -112,15 +112,12 @@ This is the sentinel set in `global-xref--exec-async'."
Starts an asynchronous process and sets
`global-xref--exec-async-sentinel' as the process sentinel if
SENTINEL is nil or not specified. Returns the process object."
- (when-let* ((cmd (symbol-value command))
- (process (apply #'start-file-process
- (format "%s-async" cmd)
- (generate-new-buffer " *temp*" t)
- cmd args))
- (sentinel (or sentinel
- #'global-xref--exec-async-sentinel)))
- (set-process-sentinel process sentinel)
- process))
+ (when-let ((cmd (symbol-value command)))
+ (make-process :name (format "%s-async" cmd)
+ :buffer (generate-new-buffer " *temp*" t)
+ :command (append (list cmd) args)
+ :sentinel #'global-xref--exec-async-sentinel
+ :file-handler t)))
(defun global-xref--exec-sync (command args)
"Run COMMAND with ARGS synchronously, on success call SENTINEL.