emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lisp/net/tramp.el [emacs-unicode-2]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/lisp/net/tramp.el [emacs-unicode-2]
Date: Wed, 27 Oct 2004 02:06:07 -0400

Index: emacs/lisp/net/tramp.el
diff -c emacs/lisp/net/tramp.el:1.39.2.8 emacs/lisp/net/tramp.el:1.39.2.9
*** emacs/lisp/net/tramp.el:1.39.2.8    Fri Oct 22 10:13:30 2004
--- emacs/lisp/net/tramp.el     Wed Oct 27 05:41:58 2004
***************
*** 1770,1775 ****
--- 1770,1776 ----
      (delete-file . tramp-handle-delete-file)
      (directory-file-name . tramp-handle-directory-file-name)
      (shell-command . tramp-handle-shell-command)
+     (process-file . tramp-handle-process-file)
      (insert-directory . tramp-handle-insert-directory)
      (expand-file-name . tramp-handle-expand-file-name)
      (file-local-copy . tramp-handle-file-local-copy)
***************
*** 3469,3474 ****
--- 3470,3487 ----
      (tramp-run-real-handler 'shell-command
                            (list command output-buffer error-buffer))))
  
+ (defun tramp-handle-process-file (program &optional infile buffer display 
&rest args)
+   "Like `process-file' for Tramp files."
+   (when infile (error "Implementation does not handle input from file"))
+   (when (and (numberp buffer) (zerop buffer))
+     (error "Implementation does not handle immediate return"))
+   (when (consp buffer) (error "Implementation does not handle error files"))
+   (shell-command 
+    (mapconcat 'tramp-shell-quote-argument
+               (cons program args)
+               " ")
+    buffer))
+ 
  ;; File Editing.
  
  (defsubst tramp-make-temp-file ()
***************
*** 3960,3965 ****
--- 3973,3980 ----
     ; COMMAND
     ((member operation
            (list 'dired-call-process 'shell-command
+                   ; Post Emacs 21.3 only
+                   'process-file
                  ; XEmacs only
                  'dired-print-file 'dired-shell-call-process))
      default-directory)




reply via email to

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