X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/c1473b4cfeb477ced05d457868c5e1eb97a58eb0..db18c5fd6fca1633508dc77d687789f38d905dd1:/lisp/subr.el diff --git a/lisp/subr.el b/lisp/subr.el index 8c9491a719..b15e463693 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2406,14 +2406,10 @@ passing the command to the shell. Wildcards and redirection are handled as usual in the shell. \(fn NAME BUFFER COMMAND &rest COMMAND-ARGS)" - (cond - ((eq system-type 'vax-vms) - (apply 'start-process name buffer args)) ;; We used to use `exec' to replace the shell with the command, ;; but that failed to handle (...) and semicolon, etc. - (t - (start-process name buffer shell-file-name shell-command-switch - (mapconcat 'identity args " "))))) + (start-process name buffer shell-file-name shell-command-switch + (mapconcat 'identity args " "))) (defun start-file-process-shell-command (name buffer &rest args) "Start a program in a subprocess. Return the process object for it. @@ -2445,16 +2441,12 @@ If BUFFER is 0, `call-process-shell-command' returns immediately with value nil. Otherwise it waits for COMMAND to terminate and returns a numeric exit status or a signal description string. If you quit, the process is killed with SIGINT, or SIGKILL if you quit again." - (cond - ((eq system-type 'vax-vms) - (apply 'call-process command infile buffer display args)) - ;; We used to use `exec' to replace the shell with the command, - ;; but that failed to handle (...) and semicolon, etc. - (t - (call-process shell-file-name - infile buffer display - shell-command-switch - (mapconcat 'identity (cons command args) " "))))) + ;; We used to use `exec' to replace the shell with the command, + ;; but that failed to handle (...) and semicolon, etc. + (call-process shell-file-name + infile buffer display + shell-command-switch + (mapconcat 'identity (cons command args) " "))) (defun process-file-shell-command (command &optional infile buffer display &rest args) @@ -2643,7 +2635,7 @@ More specifically if `debug-on-error' is set, then it does not catch any signal. "Run BODY and demote any errors to simple messages. If `debug-on-error' is non-nil, run BODY without catching its errors. This is to be used around code which is not expected to signal an error -but which should be robust in the unexpected case that an error is signalled." +but which should be robust in the unexpected case that an error is signaled." (declare (debug t) (indent 0)) (let ((err (make-symbol "err"))) `(condition-case-no-debug ,err