Re: [gedit-list] external tools
- From: jbb ve free fr
- To: Steve Frécinaux <nudrema gmail com>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] external tools
- Date: Wed, 15 Nov 2006 15:08:15 +0100
Thanks for your quick answer.
I made a test with just a cat : cat $GEDIT_CURRENT_DOCUMENT_PATH and an output
as REPLACE THE CURRENT DOCUMENT.
Here is my file:
1 test1
2 test2
After processing I get
1 test1
2 test2
3
I used vi and basically there is just 2 lines. I was confused by the extra
number line. Hence no empty line added at the end.
But I still have the one at the top of the file.
I launched the xemacs command by shell and I did not get an empty line at the
beginning of the file. Could you make a test with my script to see if you get
the same?
Thx
Sébastien
Quoting Steve Frécinaux <nudrema gmail com>:
> jbb ve free fr wrote:
> > I created the external tool calling this command:
> > xemacs --batch $GEDIT_CURRENT_DOCUMENT_PATH --eval "(progn (indent-region
> > (point-min) (point-max) nil) (save-buffer))";
> > cat $GEDIT_CURRENT_DOCUMENT_PATH.
> > My input is nothing.
> > My output is replace current document.
> > It is working well but my output got 2 extra - not needed - empty lines at
> the
> > begining and at the end of text.
> > Basically when I use some command with Replace current document as output I
> got
> > this 2 empty lines.
> >
> > Is it a bug? No idea to fix that?
>
> I just tested here, with a simple "cat $GEDIT_CURRENT_DOCUMENT_PATH"
> command, in "replace-document", and it doesn't add any white lines
> before or after the actual content. The strip-spaces tools doesn't add
> anything either. So, "here it works".
>
> Are you sure your spaces are not inserted by xemacs ? If you run the
> tool as a shell script, does it work ok ?
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]