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

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

[nongnu] elpa/crux e805ab7 057/112: Use synchronous process for crux-ope


From: ELPA Syncer
Subject: [nongnu] elpa/crux e805ab7 057/112: Use synchronous process for crux-open-with
Date: Wed, 11 Aug 2021 09:57:53 -0400 (EDT)

branch: elpa/crux
commit e805ab780a4a1ce22a4436bde09b95e97d150e51
Author: Justin Burkett <justin@burkett.cc>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>

    Use synchronous process for crux-open-with
    
    Since the system open command appears to fork immediately there shouldn't 
be any
    real performance penalty to doing this.
    
    Fixes #37
---
 crux.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crux.el b/crux.el
index 1eef379..f5af70c 100644
--- a/crux.el
+++ b/crux.el
@@ -103,7 +103,7 @@ With a prefix ARG always prompt for command to use."
          (program (if (or arg (not open))
                       (read-shell-command "Open current file with: ")
                     open)))
-    (start-process "crux-open-with-process" nil program current-file-name)))
+    (call-process program nil 0 nil current-file-name)))
 
 (defun crux-buffer-mode (buffer-or-name)
   "Retrieve the `major-mode' of BUFFER-OR-NAME."



reply via email to

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