Re: mg(1): shell-command

2013-05-22 Thread Mark Lumsden
I am glad to say, 3 of you are on your toes today. I sent the wrong diff, and to be honest I wasn't sure if any one would notice. Gold Stars to you all On Wed, May 22, 2013 at 09:07:56AM +, Florian Obser wrote: > On Tue, May 21, 2013 at 07:54:31PM +, Mark Lumsden wrote: > > This di

Re: mg(1): shell-command

2013-05-22 Thread Florian Obser
On Tue, May 21, 2013 at 07:54:31PM +, Mark Lumsden wrote: > This diff modifies the shell-command-on-region function and gives us > shell-command. It makes getting output from other commands into mg > really easy. Comments/oks? > > -lum > > Index: def.h > ==

Re: mg(1): shell-command

2013-05-22 Thread Mark Lumsden
To make the shell-command-on-region and this command behave like that requires another diff. mark On Wed, May 22, 2013 at 09:32:45AM +0200, Jasper Lievisse Adriaanse wrote: > On Tue, May 21, 2013 at 07:54:31PM +, Mark Lumsden wrote: > > This diff modifies the shell-command-on-region function

Re: mg(1): shell-command

2013-05-22 Thread Jasper Lievisse Adriaanse
On Wed, May 22, 2013 at 07:42:42AM +, Mark Lumsden wrote: > To make the shell-command-on-region and this command behave > like that requires another diff. > > mark I'm fine with this diff going in first and polishing it intree, it works fine for commands with > 1 line of output. > On Wed, Ma

Re: mg(1): shell-command

2013-05-22 Thread Jasper Lievisse Adriaanse
On Tue, May 21, 2013 at 07:54:31PM +, Mark Lumsden wrote: > This diff modifies the shell-command-on-region function and gives us > shell-command. It makes getting output from other commands into mg > really easy. Comments/oks? > > -lum It seems Emacs doesn't split the window if the output fro

mg(1): shell-command

2013-05-21 Thread Mark Lumsden
This diff modifies the shell-command-on-region function and gives us shell-command. It makes getting output from other commands into mg really easy. Comments/oks? -lum Index: def.h === RCS file: /cvs/src/usr.bin/mg/def.h,v retrieving