From rms@gnu.ai.mit.edu Thu May 29 18:27:55 1997 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil "Thu" "29" "May" "1997" "21:27:53" "-0400" "Richard Stallman" "rms@gnu.ai.mit.edu" nil "36" "[pbreton@i-kinetics.com: Re: \"complete.el\" on WindowsNT 4.0]" "^From:" nil nil "5" nil nil nil nil] nil) Received: from psilocin.gnu.ai.mit.edu (psilocin.gnu.ai.mit.edu [128.52.46.62]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id SAA28908 for ; Thu, 29 May 1997 18:27:54 -0700 Received: by psilocin.gnu.ai.mit.edu (8.6.12/8.6.12GNU) id VAA22789; Thu, 29 May 1997 21:27:53 -0400 Message-Id: <199705300127.VAA22789@psilocin.gnu.ai.mit.edu> From: Richard Stallman To: voelker@cs.washington.edu Subject: [pbreton@i-kinetics.com: Re: "complete.el" on WindowsNT 4.0] Date: Thu, 29 May 1997 21:27:53 -0400 Please do the right thing. ------- Start of forwarded message ------- X-Authentication-Warning: ns.i-kinetics.com: mail set sender to using -f Date: Thu, 29 May 1997 18:49:33 -0400 From: Peter Breton To: jwfrosch@ingr.com, bug-gnu-emacs@prep.ai.mit.edu Cc: ntemacs-users@cs.washington.edu (NT-Emacs Users) Subject: Re: "complete.el" on WindowsNT 4.0 In-Reply-To: <199705292102.AA07889@rish.b17c.ingr.com> Reply-To: pbreton@i-kinetics.com Content-Type: text/plain; charset=US-ASCII Hans> Is there a way to get the package "complete.el" to work on Hans> WindowsNT 4.0 just as cool as it does under UNIX ?? Hans> Whatever I tried so far does not seem to have any effect at Hans> all. Hans> ("complete.el" allows wildcards when retrieving files in Hans> directories/filenames) The problem seems to be that the function `PC-expand-many-files' calls (shell-command (concat "echo " name) t) to get the names of the files all on a single line, relying on Unix-style shell expansion. If you could find a utility that does that, then all would be well -- more or less. This scheme probably won't work with filenames with embedded spaces, which are rare on Unix but common on 95 and NT. One filename per line would be much better, and could use "ls" or the equivalent. Peter ------- End of forwarded message ------- From owner-ntemacs-users@cs.washington.edu Fri May 30 06:45:43 1997 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil "Fri" "30" "May" "1997" "09:10:34" "-0400" "David Biesack" "sasdjb@unx.sas.com" nil "17" "> \"complete.el\" on WindowsNT 4.0" "^From:" nil nil "5" nil nil nil nil] nil) Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id GAA29419 for ; Fri, 30 May 1997 06:45:43 -0700 Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id GAA35169 for ; Fri, 30 May 1997 06:45:42 -0700 Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id GAA06106 for ntemacs-users-outgoing; Fri, 30 May 1997 06:14:50 -0700 (PDT) Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id GAA06102 for ; Fri, 30 May 1997 06:14:46 -0700 (PDT) Received: from lamb.sas.com (lamb.sas.com [192.35.83.8]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id GAA27549 for ; Fri, 30 May 1997 06:14:45 -0700 Received: from mozart by lamb.sas.com (5.65c/SAS/Gateway/01-23-95) id AA21906; Fri, 30 May 1997 09:14:44 -0400 Received: from lambda.unx.sas.com by mozart (5.65c/SAS/Domains/5-6-90) id AA00855; Fri, 30 May 1997 09:10:34 -0400 Received: by lambda.unx.sas.com (5.65c/SAS/Generic 9.01/3-26-93) id AA29754; Fri, 30 May 1997 09:10:34 -0400 Message-Id: <199705301310.AA29754@lambda.unx.sas.com> In-Reply-To: <199705292249.SAA18378@volte.i-kinetics.com> (message from Peter Breton on Thu, 29 May 1997 18:49:33 -0400) Precedence: bulk From: David Biesack Sender: owner-ntemacs-users@cs.washington.edu To: ntemacs-users@cs.washington.edu Subject: > "complete.el" on WindowsNT 4.0 Date: Fri, 30 May 1997 09:10:34 -0400 > Hans> Is there a way to get the package "complete.el" to work on > Hans> WindowsNT 4.0 just as cool as it does under UNIX ?? > > The problem seems to be that the function `PC-expand-many-files' calls > > (shell-command (concat "echo " name) t) > > to get the names of the files all on a single line, relying on Unix-style > shell expansion. If you could find a utility that does that, then all > would be well -- more or less. > > Peter If you have bash installed, you can use (shell-command (concat "bash -c \"echo " name "\"") t) From owner-ntemacs-users@cs.washington.edu Fri May 30 09:00:10 1997 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil "Fri" "30" "May" "1997" "10:34:30" "-0400" "Peter Breton" "pbreton@i-kinetics.com" nil "34" "Re: > \"complete.el\" on WindowsNT 4.0" "^From:" nil nil "5" nil nil nil nil] nil) Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id JAA07870 for ; Fri, 30 May 1997 09:00:10 -0700 Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id JAA30110 for ; Fri, 30 May 1997 09:00:08 -0700 Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id IAA07849 for ntemacs-users-outgoing; Fri, 30 May 1997 08:18:55 -0700 (PDT) Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id IAA07845 for ; Fri, 30 May 1997 08:18:52 -0700 (PDT) Received: from ns.i-kinetics.com (ns.i-kinetics.com [205.181.32.10]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with ESMTP id IAA05070 for ; Fri, 30 May 1997 08:18:51 -0700 Received: (from mail@localhost) by ns.i-kinetics.com (8.8.5/8.7.3) id KAA25065; Fri, 30 May 1997 10:57:06 -0400 (EDT) X-Authentication-Warning: ns.i-kinetics.com: mail set sender to using -f Received: from dirac.i-kinetics.com(192.31.81.157) by ns.i-kinetics.com via smap (V2.0) id xma025061; Fri, 30 May 97 10:57:04 -0400 Received: from volte.i-kinetics.com ([192.31.81.160]) by dirac.i-kinetics.com (8.8.5/8.8.5) with SMTP id KAA22304; Fri, 30 May 1997 10:37:12 -0400 (EDT) Received: by volte.i-kinetics.com (SMI-8.6/SMI-SVR4) id KAA24204; Fri, 30 May 1997 10:34:30 -0400 Message-Id: <199705301434.KAA24204@volte.i-kinetics.com> In-Reply-To: <199705301310.AA29754@lambda.unx.sas.com> References: <199705292249.SAA18378@volte.i-kinetics.com> <199705301310.AA29754@lambda.unx.sas.com> Reply-To: pbreton@i-kinetics.com Mime-Version: 1.0 (generated by tm-edit 7.102) Content-Type: text/plain; charset=US-ASCII Precedence: bulk From: Peter Breton Sender: owner-ntemacs-users@cs.washington.edu To: David Biesack Cc: ntemacs-users@cs.washington.edu Subject: Re: > "complete.el" on WindowsNT 4.0 Date: Fri, 30 May 1997 10:34:30 -0400 Hans> Is there a way to get the package "complete.el" to work on Hans> WindowsNT 4.0 just as cool as it does under UNIX ?? >> The problem seems to be that the function `PC-expand-many-files' >> calls >> >> (shell-command (concat "echo " name) t) >> >> to get the names of the files all on a single line, relying on >> Unix-style shell expansion. If you could find a utility that does >> that, then all would be well -- more or less. >> >> Peter David> If you have bash installed, you can use David> (shell-command (concat "bash -c \"echo " name "\"") t) You will have to modify complete.el to do so, though. I think the "right" modification would be to change the name parsing algorithm to handle files with embedded spaces. Less good, but still an improvement, would be to change the above line to something like (shell-command (concat PC-echo-command " " name) t) and then add: (defvar PC-echo-command "echo" "Shell command to perform wildcard expansion.") Then you could use MKS echo, bash, etc Peter From owner-ntemacs-users@cs.washington.edu Thu May 29 16:32:04 1997 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil "Thu" "29" "May" "1997" "18:49:33" "-0400" "Peter Breton" "pbreton@i-kinetics.com" nil "22" "Re: \"complete.el\" on WindowsNT 4.0" "^From:" nil nil "5" nil nil nil nil] nil) Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id QAA20905 for ; Thu, 29 May 1997 16:32:04 -0700 Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id QAA41346 for ; Thu, 29 May 1997 16:32:01 -0700 Received: (majordom@localhost) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) id PAA27991 for ntemacs-users-outgoing; Thu, 29 May 1997 15:52:16 -0700 (PDT) Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id PAA27987 for ; Thu, 29 May 1997 15:52:13 -0700 (PDT) Received: from ns.i-kinetics.com (ns.i-kinetics.com [205.181.32.10]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with ESMTP id PAA17869 for ; Thu, 29 May 1997 15:52:12 -0700 Received: (from mail@localhost) by ns.i-kinetics.com (8.8.5/8.7.3) id SAA17245; Thu, 29 May 1997 18:30:32 -0400 (EDT) X-Authentication-Warning: ns.i-kinetics.com: mail set sender to using -f Received: from dirac.i-kinetics.com(192.31.81.157) by ns.i-kinetics.com via smap (V2.0) id xma017237; Thu, 29 May 97 18:30:12 -0400 Received: from volte.i-kinetics.com (volte.i-kinetics.com [192.31.81.160]) by dirac.i-kinetics.com (8.8.5/8.8.5) with SMTP id SAA10843; Thu, 29 May 1997 18:48:55 -0400 (EDT) Received: by volte.i-kinetics.com (SMI-8.6/SMI-SVR4) id SAA18378; Thu, 29 May 1997 18:49:33 -0400 Message-Id: <199705292249.SAA18378@volte.i-kinetics.com> In-Reply-To: <199705292102.AA07889@rish.b17c.ingr.com> References: <199705292102.AA07889@rish.b17c.ingr.com> Reply-To: pbreton@i-kinetics.com Mime-Version: 1.0 (generated by tm-edit 7.102) Content-Type: text/plain; charset=US-ASCII Precedence: bulk From: Peter Breton Sender: owner-ntemacs-users@cs.washington.edu To: jwfrosch@ingr.com, bug-gnu-emacs@prep.ai.mit.edu Cc: ntemacs-users@cs.washington.edu (NT-Emacs Users) Subject: Re: "complete.el" on WindowsNT 4.0 Date: Thu, 29 May 1997 18:49:33 -0400 Hans> Is there a way to get the package "complete.el" to work on Hans> WindowsNT 4.0 just as cool as it does under UNIX ?? Hans> Whatever I tried so far does not seem to have any effect at Hans> all. Hans> ("complete.el" allows wildcards when retrieving files in Hans> directories/filenames) The problem seems to be that the function `PC-expand-many-files' calls (shell-command (concat "echo " name) t) to get the names of the files all on a single line, relying on Unix-style shell expansion. If you could find a utility that does that, then all would be well -- more or less. This scheme probably won't work with filenames with embedded spaces, which are rare on Unix but common on 95 and NT. One filename per line would be much better, and could use "ls" or the equivalent. Peter