branch: elpa/crux
commit e805ab780a4a1ce22a4436bde09b95e97d150e51
Author: Justin Burkett <jus...@burkett.cc>
Commit: Bozhidar Batsov <bozhidar.bat...@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