From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Peter" Newsgroups: gmane.emacs.help Subject: tramp-touch on NTemacs Date: 9 Mar 2007 14:08:08 -0800 Organization: http://groups.google.com Message-ID: <1173478088.548774.192440@c51g2000cwc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1173480053 31573 80.91.229.12 (9 Mar 2007 22:40:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 22:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 09 23:40:49 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPnlV-0007BG-Vt for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 23:40:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPnlq-0005GS-5A for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 17:41:06 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!c51g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: 72.67.212.7 Original-X-Trace: posting.google.com 1173478106 1921 127.0.0.1 (9 Mar 2007 22:08:26 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 9 Mar 2007 22:08:26 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: c51g2000cwc.googlegroups.com; posting-host=72.67.212.7; posting-account=KMJTpgwAAAB-FEXOrQL8Aol9y_vFp0k5 Original-Xref: shelby.stanford.edu gnu.emacs.help:146242 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41847 Archived-At: Hi. I'm running GNU Emacs 22.0.50.2 (i386-mingw-nt5.1.2600) under Windows XP. I need to transfer files back and forth with a Linux machine at work that does not allow ftp access. The pre-installed tramp package seems to work just fine except when I try to copy a file from the Linux machine back to my local XP machine. The file is copied, but I get an error message saying "tramp-touch: touch failed". I am using the default method (plink?); there is nothing in my .emacs file to modify this. When I first experimented with tramp, it complained that there wasn't a touch program, so I tried several versions that I downloaded from the web, finally settling on the one from the UnxUtils package available on Sourceforge.net. It seems to have the same command-line options as the Unix versions, including -t. I've looked at the tramp.el file for this error message. It is embedded in some code that looks like the following excerpt: (defun tramp-touch (file time) "Set the last-modified timestamp of the given file. TIME is an Emacs internal time value as returned by `current-time'." (let ((touch-time (format-time-string "%Y%m%d%H%M.%S" time))) (if (tramp-tramp-file-p file) (with-parsed-tramp-file-name file nil (let ((buf (tramp-get-buffer multi-method method user host))) (unless (zerop (tramp-send-command-and-check multi-method method user host (format "touch -t %s %s" touch-time localname))) (pop-to-buffer buf) (error "tramp-touch: touch failed, see buffer `%s' for details" buf)))) ;; It's a local file (with-temp-buffer (unless (zerop (call-process "touch" nil (current-buffer) nil "-t" touch-time file)) (pop-to-buffer (current-buffer)) (error "tramp-touch: touch failed")))))) I'm assuming that the error message is generated by the final line of code above. However, I don't know any List and don't know how to debug this further. I can, however, follow directions and would appreciate suggestions on how to proceed. This error occurs with whatever version of touch.exe I install on my system. Thanks, Peter