From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10645 Path: main.gmane.org!not-for-mail From: Andrew Innes Newsgroups: gmane.emacs.gnus.general Subject: Re: UUdecode and NTemacs Date: Tue, 8 Apr 1997 19:05:35 +0100 (BST) Message-ID: <199704081805.TAA20079@propos.long.harlequin.co.uk> References: <199704040859.KAA27807@esemetz.ese-metz.fr> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035150480 25537 80.91.224.250 (20 Oct 2002 21:48:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:48:00 +0000 (UTC) Cc: ding@gnus.org, ntemacs-users@cs.washington.edu Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id LAA17930 for ; Tue, 8 Apr 1997 11:17:37 -0700 Original-Received: from claymore.vcinet.com (claymore.vcinet.com [208.205.12.23]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Tue, 8 Apr 1997 20:06:45 +0200 Original-Received: (qmail 22032 invoked by uid 504); 8 Apr 1997 18:04:16 -0000 Original-Received: (qmail 22029 invoked from network); 8 Apr 1997 18:04:14 -0000 Original-Received: from holly.cam.harlequin.co.uk (193.128.4.58) by claymore.vcinet.com with SMTP; 8 Apr 1997 18:04:11 -0000 Original-Received: from propos.long.harlequin.co.uk (propos.long.harlequin.co.uk [193.128.93.50]) by holly.cam.harlequin.co.uk (8.8.4/8.7.3) with ESMTP id TAA04842; Tue, 8 Apr 1997 19:06:15 +0100 (BST) Original-Received: from elan.long.harlequin.co.uk (elan.long.harlequin.co.uk [193.128.93.78]) by propos.long.harlequin.co.uk (8.8.4/8.6.12) with SMTP id TAA20079; Tue, 8 Apr 1997 19:05:35 +0100 (BST) Original-To: popineau@esemetz.ese-metz.fr In-reply-to: <199704040859.KAA27807@esemetz.ese-metz.fr> (message from Fabrice POPINEAU on Fri, 4 Apr 1997 10:59:10 +0200 (MET DST)) Xref: main.gmane.org gmane.emacs.gnus.general:10645 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10645 On Fri, 4 Apr 1997 10:59:10 +0200 (MET DST), Fabrice POPINEAU said: >Hi, > >The following code in gnus-uu.el (5.4.36) needs some modification to >work under NTemacs: > > ;; Start a new uudecoding process. > (let ((cdir default-directory)) > (unwind-protect > (progn > (cd gnus-uu-work-dir) > (setq gnus-uu-uudecode-process > (start-process > "*uudecode*" > (get-buffer-create gnus-uu-output-buffer-name) >; shell-file-name shell-command-switch >; (format "cd %s %s uudecode" gnus-uu-work-dir >; gnus-shell-command-separator)))) > "uudecode"))) > (cd cdir))) > >There are 2 problems: > >- gnus-uu-work-dir is "f:/tmp/gnusa00195" and if your shell is "cmd", >it can't 'cd' to some path with '/', it needs '\' You can solve this by binding directory-sep-char to '\' while calling expand-file-name; this will give the correct format on Windows 95/NT. >- anyway, I'm not sure NTemacs can accept "cd f:\\tmp\\gnusa00195 && >uudecode" as a program to start. If you are "on" drive F at the time, then this will work on Windows NT. It won't work on Windows 95, using the standard shell. >As there was a (cd gnus-uu-work-dir) just before, is it useful to keep >the "cd tmpdir &&" into the starting process ? It should be a no-op, I think. If the original code above works without that, then you have your solution. AndrewI -- Andrew Innes Software Developer, Electronic Publishing Harlequin Limited, Longstanton House, Longstanton, Cambridge CB4 5BU, U.K. Tel: +44 1954 785468 Fax: +44 1954 785444 WWW: http://www.harlequin.com