Article View: gnu.emacs.vm.bug
Article #314Re: PLEASE TRY THIS PATCH
From: blueman
Date: Sun, 10 Jan 2010 00:02
Date: Sun, 10 Jan 2010 00:02
90 lines
5433 bytes
5433 bytes
Uday S Reddy <uDOTsDOTreddy@cs.bham.ac.uk> writes: > blueman wrote: > >> >> My patch has been tested and works on multiple different types of >> commands. If you have an example that doesn't work, please post it so I >> can replicate it... > > Ok, thanks for sharing that. If you are going to act as the developer > for now, then here it goes. Thanks - I really do want to help > > The behaviour I am getting is basically that whenever I mark multiple > messages and run `|s' with cat as the command, Emacs freezes. The > only way to recover is to forcibly kill the cat process in the task > manager. Then I see messages like: > > Next command uses marks... > vm-pipe-messages-to-command: writing to process: > CCL: Quited., cat > > Next command uses marks... > vm-pipe-messages-to-command: writing to process: invalid argument, > cat > > in the *Messages* buffer. It doesn't seem to matter what messages I > try it on. > > When I try it on a single message, it often works. This is interesting. Because for me "|s" with cat worked even before my patches. It only failed when I tried either to set the optional variable DISCARD-OUTPUT or when I tried to use it asynchronously by setting the NO-WAIT exit handler. These problems were due to a combination of the "missing" command argument and the missing comma in front of no-wait -- all of which only surfaced when the optional variables were set to non-nil. Now it seems like you are having problems with the command itself. This is actually good since it elminates the complexity of the problem being with some funky exit handler you were writing ;) > This is the behaviour I see with my patched version which is on > launchpad, as well as the patches you posted today. > > If you want me to post something that will help diagnose the problem, > then you need to tell me what you want to send and where to send it > to. If you have access to Linux, I would suggest trying there to see whether this can be attributed to a cygwin problem. I tested mine on the 1.7 version of cygwin which may still be beta and also I was using ntemacs rather than cygwin emacs so are Windows platforms may be different. That being said, check what the value of the variable shell-file-name is. If you are using ntemacs then that gets set by default to "C:/My Programs/Emacs/bin/cmdproxy.exe" which results in a Windows shell. I set the shell to "C:/cygwin/bin/bash.exe" and it all works fine. The difference between vm-pipe-message-to-command and vm-pipe-messages-to-command is that the first one uses "call-process-region" while the 2nd one first starts the process using "start-process" and then sends it input. As a test try running: (tart-process "test" "tempbuff" shell-file-name shell-command-switch "cat > testfile")) (list-processes) When shell-file-name = "C:/cygwin/bin/bash.exe" the process starts When shell-file-name = "C:/cygwin/bin/bash.exe" the process fails to start. > The other problem that I saw with your original patch, to do with the > command' variable, didn't arise today. But I haven't checked closely > to see whether the problem code was getting exercised or not. > > --- > > There is some merit in the rest of the arguments in your message that > I will think about. > > I am not 'fixated' on my code. If it is faulty, I am quite happy to > retract it. It happens all the time! But I think this message was > the first instance where you have talked about anything going > wrong. So, thanks for getting to the point! > > Cheers, > Uday
Technical Details
Message-ID:
<m28wc6vncg.fsf@consult.pretender>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mailReferences:
<m2d41p7sho.fsf@consult.pretender> <hi0018$1gk$1@north.jnrs.ja.net> <m21vi45kxy.fsf@consult.pretender> <hi0e67$5b2$1@north.jnrs.ja.net> <m2tyv03yq9.fsf@consult.pretender> <m2pr5o3ycq.fsf@consult.pretender> <m2ljgc3xd3.fsf@consult.pretender> <hi2c72$l5i$1@north.jnrs.ja.net> <m2ocl7yvsr.fsf@consult.pretender> <hi4d25$81f$1@north.jnrs.ja.net> <m24omxzybc.fsf@consult.pretender> <hi54kr$euu$1@north.jnrs.ja.net> <m2r5q1ybz4.fsf@consult.pretender> <m2my0pybcx.fsf@consult.pretender> <hi5peg$kmp$1@north.jnrs.ja.net> <m2iqbdxbuj.fsf@consult.pretender> <hi73bg$1cs$1@north.jnrs.ja.net> <m2aawownfr.fsf_-_@consult.pretender> <hi80m7$9sa$1@north.jnrs.ja.net> <m2pr5kuzoi.fsf@consult.pretender> <hi88sr$c2j$1@north.jnrs.ja.net>Show Full Headers
Complete Article Headers
X-Google-Thread: a16957f451,747cd7667796b3e3 X-Google-Attributes: gida16957f451,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!188.40.43.213.MISMATCH!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: blueman <NOSPAM@nospam.com> Newsgroups: gnu.emacs.vm.bug Subject: Re: PLEASE TRY THIS PATCH Date: Sat, 09 Jan 2010 19:02:23 -0500 Organization: A noiseless patient Spider Lines: 90 Message-ID: <m28wc6vncg.fsf@consult.pretender> References: <m2d41p7sho.fsf@consult.pretender> <hi0018$1gk$1@north.jnrs.ja.net> <m21vi45kxy.fsf@consult.pretender> <hi0e67$5b2$1@north.jnrs.ja.net> <m2tyv03yq9.fsf@consult.pretender> <m2pr5o3ycq.fsf@consult.pretender> <m2ljgc3xd3.fsf@consult.pretender> <hi2c72$l5i$1@north.jnrs.ja.net> <m2ocl7yvsr.fsf@consult.pretender> <hi4d25$81f$1@north.jnrs.ja.net> <m24omxzybc.fsf@consult.pretender> <hi54kr$euu$1@north.jnrs.ja.net> <m2r5q1ybz4.fsf@consult.pretender> <m2my0pybcx.fsf@consult.pretender> <hi5peg$kmp$1@north.jnrs.ja.net> <m2iqbdxbuj.fsf@consult.pretender> <hi73bg$1cs$1@north.jnrs.ja.net> <m2aawownfr.fsf_-_@consult.pretender> <hi80m7$9sa$1@north.jnrs.ja.net> <m2pr5kuzoi.fsf@consult.pretender> <hi88sr$c2j$1@north.jnrs.ja.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sun, 10 Jan 2010 00:02:24 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="o0xooYC/dlyFpPxuXQpbEw"; logging-data="21578"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9o6vzfNJdCc2bec1KsStmp9Y9qiohz+8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:+mF3BJeD/ED3jvsPQsMKevZ1HOQ= sha1:H6KnXcyMCRuXV/aqd4pSOb9EW0o=