emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gtags-mode 3d7bf179bb 29/61: Use make-process instead o


From: ELPA Syncer
Subject: [elpa] externals/gtags-mode 3d7bf179bb 29/61: Use make-process instead of start-file-process.
Date: Thu, 28 Apr 2022 10:57:39 -0400 (EDT)

branch: externals/gtags-mode
commit 3d7bf179bb8b77e49900af039e7837a94b1948ec
Author: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Commit: Jimmy Aguilar Mena <kratsbinovish@gmail.com>

    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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]