🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #236

Re: Suggested fix to vm-pipe-message-part

#236
From: Uday S Reddy
Date: Thu, 07 Jan 2010 10:29
35 lines
2895 bytes
blueman wrote:

>>
> Please try with the two patches I submitted. 

Hi, I don't know what you mean by "submitted".  I haven't yet received 
anything from you via launchpad.net.

Whatever you posted here has been put in.  But in your version of the 
exit-handler below, notice that you added a 'command' argument but 
never used it!

Cheers,
Uday



> ---------------------------------------------------------------------
> 
> ; Fixes missing 'command' argument in defun
> (defun vm-pipe-command-exit-handler (process command discard-output 
> 					     &optional exit-handler)
>   "Switch to output buffer of PROCESS if DISCARD-OUTPUT non-nil.
> If non-nil call EXIT-HANDLER with the two arguments COMMAND and OUTPUT-BUFFER." 
>   (let ((exit-code (process-exit-status process))
> 	(buffer (process-buffer process))
> 	(command (process-command process)))
>   (if (not (zerop exit-code))
>       (message "Command '%s' exit code is %d." command exit-code))
>   (vm-display nil nil '(vm-pipe-message-to-command)
> 	      '(vm-pipe-message-to-command))
>   (vm-switch-to-command-output-buffer command buffer discard-output)
>   (if exit-handler
>       (funcall exit-handler command buffer))))
> 
Technical Details
Message-ID: <hi4d25$81f$1@north.jnrs.ja.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!192.87.166.28.MISMATCH!tudelft.nl!txtfeed1.tudelft.nl!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!feed4.jnfs.ja.net!jnfs.ja.net!times.reader.netnews.ja.net!not-for-mail
References: <m2d41p7sho.fsf@consult.pretender> <hht5o0$9pd$1@scotsman.ed.ac.uk> <m23a2l7myy.fsf@consult.pretender> <hhti24$9ua$1@scotsman.ed.ac.uk> <m2tyv15eaz.fsf@consult.pretender> <hhv7u9$bf4$1@scotsman.ed.ac.uk> <m2iqbg5zjg.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>

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!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!192.87.166.28.MISMATCH!tudelft.nl!txtfeed1.tudelft.nl!dedekind.zen.co.uk!zen.net.uk!hamilton.zen.co.uk!feed4.jnfs.ja.net!jnfs.ja.net!times.reader.netnews.ja.net!not-for-mail
From: Uday S Reddy <uDOTsDOTreddy@cs.bham.ac.uk>
Newsgroups: gnu.emacs.vm.bug
Subject: Re: Suggested fix to vm-pipe-message-part
Date: Thu, 07 Jan 2010 10:29:35 +0000
Organization: Janet Usenet Reading Service.
Lines: 35
Message-ID: <hi4d25$81f$1@north.jnrs.ja.net>
References: <m2d41p7sho.fsf@consult.pretender> <hht5o0$9pd$1@scotsman.ed.ac.uk> <m23a2l7myy.fsf@consult.pretender> <hhti24$9ua$1@scotsman.ed.ac.uk> <m2tyv15eaz.fsf@consult.pretender> <hhv7u9$bf4$1@scotsman.ed.ac.uk> <m2iqbg5zjg.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>
NNTP-Posting-Host: gromit.cs.bham.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: north.jnrs.ja.net 1262860165 8239 147.188.193.16 (7 Jan 2010 10:29:25 GMT)
X-Complaints-To: usenet@north.jnrs.ja.net
NNTP-Posting-Date: Thu, 7 Jan 2010 10:29:25 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
In-Reply-To: <m2ocl7yvsr.fsf@consult.pretender>