tramp-devel
[Top][All Lists]
Advanced

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

Re: chmod, chgrp, etc... inside dired over tramp


From: Gilles Pion
Subject: Re: chmod, chgrp, etc... inside dired over tramp
Date: Tue, 4 Sep 2007 09:14:02 -0700 (PDT)

> tramp-handle-call-process does exist in Tramp 2.1.10. 

This next piece of code is from tramp-util.el extracted my local
tramp-2.1.10.tar.gz archive , there is a reference to
tramp-handle-call-process, is this normal?

  (defadvice call-process
    (around tramp-advice-call-process activate)
    "Invoke `tramp-handle-call-process' for Tramp files."
    (let ((fnh (tramp-find-foreign-file-name-handler default-directory)))
      (cond ((eq fnh 'tramp-sh-file-name-handler)
             (setq ad-return-value
                   (apply 'tramp-handle-call-process (ad-get-args 0))))
            ((eq fnh 'tramp-fish-file-name-handler)
             (setq ad-return-value
                   (apply 'tramp-fish-handle-call-process (ad-get-args 0))))
            (t ad-do-it))))
  (add-hook 'tramp-util-unload-hook
            '(lambda () (ad-unadvise 'call-process)))



--
Gilles


-- 
View this message in context: 
http://www.nabble.com/chmod%2C-chgrp%2C-etc...-inside-dired-over-tramp-tf4373216.html#a12481344
Sent from the Gnu - Tramp - Dev mailing list archive at Nabble.com.





reply via email to

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