[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/subr.el,v
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/subr.el,v |
Date: |
Tue, 24 Jul 2007 20:49:18 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Michael Albinus <albinus> 07/07/24 20:49:18
Index: subr.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/subr.el,v
retrieving revision 1.560
retrieving revision 1.561
diff -u -b -r1.560 -r1.561
--- subr.el 14 Jul 2007 11:07:24 -0000 1.560
+++ subr.el 24 Jul 2007 20:49:17 -0000 1.561
@@ -2310,6 +2310,15 @@
(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.
+Similar to `start-process-shell-command', but calls `start-file-process'."
+ (start-file-process
+ name buffer
+ (if (file-remote-p default-directory) "/bin/sh" shell-file-name)
+ (if (file-remote-p default-directory) "-c" shell-command-switch)
+ (mapconcat 'identity args " ")))
+
(defun call-process-shell-command (command &optional infile buffer display
&rest args)
"Execute the shell command COMMAND synchronously in separate process.
@@ -2342,6 +2351,16 @@
shell-command-switch
(mapconcat 'identity (cons command args) " ")))))
+(defun process-file-shell-command (command &optional infile buffer display
+ &rest args)
+ "Process files synchronously in a separate process.
+Similar to `call-process-shell-command', but calls `process-file'."
+ (process-file
+ (if (file-remote-p default-directory) "/bin/sh" shell-file-name)
+ infile buffer display
+ (if (file-remote-p default-directory) "-c" shell-command-switch)
+ (mapconcat 'identity (cons command args) " ")))
+
;;;; Lisp macros to do various things temporarily.
(defmacro with-current-buffer (buffer &rest body)
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Stefan Monnier, 2007/07/08
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Richard M. Stallman, 2007/07/09
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Stefan Monnier, 2007/07/10
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Juanma Barranquero, 2007/07/14
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v,
Michael Albinus <=
- [Emacs-diffs] Changes to emacs/lisp/subr.el,v, Miles Bader, 2007/07/26