From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help,gmane.emacs.windows Subject: Re: tramp-touch on NTemacs Date: Fri, 09 Mar 2007 23:46:39 +0100 Message-ID: <45F1E3CF.2080500@gmail.com> References: <1173478088.548774.192440@c51g2000cwc.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173480433 32669 80.91.229.12 (9 Mar 2007 22:47:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 22:47:13 +0000 (UTC) Cc: help-emacs-windows 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:47:09 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 1HPnrf-0001dK-Pq for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 23:47:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPns0-0007Xa-0I for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Mar 2007 17:47:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPnrn-0007XE-1a for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 17:47:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPnrl-0007Wy-1w for help-gnu-emacs@gnu.org; Fri, 09 Mar 2007 17:47:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPnrk-0007Wt-QK; Fri, 09 Mar 2007 17:47:12 -0500 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPnrN-0002Sm-HI; Fri, 09 Mar 2007 17:46:49 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:61363 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1HPnrG-00017n-7s; Fri, 09 Mar 2007 23:46:43 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666 In-Reply-To: <1173478088.548774.192440@c51g2000cwc.googlegroups.com> X-Antivirus: avast! (VPS 000722-4, 2007-03-09), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1HPnrG-00017n-7s. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1HPnrG-00017n-7s 995cd0f3fba129dd468fbbeaa8b455e6 X-detected-kernel: Linux 2.6? (barebone, rare!) 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:41849 gmane.emacs.windows:3500 Archived-At: Have you tried the touch.exe from gnuwin32? I do not know if it works, but it is more recent and also currently maintained. I would be interested in hearing the result. Peter wrote: > 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 > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs >