The editor variable, how does it work exactly?

2012-12-06 Thread Chris Green
If I set the editor variable does mutt execute that command with the name of the temporary file after it, or is there some sort of variable name for the temporary file? -- Chris Green

Re: The editor variable, how does it work exactly?

2012-12-06 Thread Michael Elkins
On Thu, Dec 06, 2012 at 02:12:32PM +, Chris Green wrote: If I set the editor variable does mutt execute that command with the name of the temporary file after it, or is there some sort of variable name for the temporary file? I've opened a ticket, because I agree the documentation

Re: The editor variable, how does it work exactly?

2012-12-06 Thread Patrick Shanahan
* Michael Elkins m...@sigpipe.org [12-06-12 10:44]: On Thu, Dec 06, 2012 at 02:12:32PM +, Chris Green wrote: If I set the editor variable does mutt execute that command with the name of the temporary file after it, or is there some sort of variable name for the temporary file? I've

Re: The editor variable, how does it work exactly?

2012-12-06 Thread Michael Elkins
On Thu, Dec 06, 2012 at 10:52:24AM -0500, Patrick Shanahan wrote: Meaning the %s is superfluous?? set editor=joe -wordwrap -rmargin 075 -syntax mail +10 %s could be: set editor=joe -wordwrap -rmargin 075 -syntax mail +10 Yes, those are equivalent.

Re: The editor variable, how does it work exactly?

2012-12-06 Thread Chris Green
On Thu, Dec 06, 2012 at 07:43:29AM -0800, Michael Elkins wrote: On Thu, Dec 06, 2012 at 02:12:32PM +, Chris Green wrote: If I set the editor variable does mutt execute that command with the name of the temporary file after it, or is there some sort of variable name for the temporary file

Re: The editor variable

2000-08-15 Thread Caster
Hello Mutt Users! On pon 14 sie 2000 11:13:40 GMT Michael Elkins wrote: It sets $editor to gvim and then tries to set the variable -c, which of course does not exist. Oh, I see. I wrote a shell script which I set as my $editor (set editor="my_script") and it works (the script calls the

The editor variable

2000-08-14 Thread Caster
Hi! Why something like this doesn't work: set editor=`if test $DISPLAY ; then echo gvim -c ":normal 2/^$/" +nohlsearch %s ; else echo vim -c ":normal 2/^$/" +nohlsearch %s ; fi` It's all in one line. Mutt complains about unknown -c option (!). I've tried to quote it and escape it somehow but it

Re: The editor variable

2000-08-14 Thread Bob Bell
On Mon, Aug 14, 2000 at 06:14:31PM +0200, Caster [EMAIL PROTECTED] wrote: Hi! Why something like this doesn't work: set editor=`if test $DISPLAY ; then echo gvim -c ":normal 2/^$/" +nohlsearch %s ; else echo vim -c ":normal 2/^$/" +nohlsearch %s ; fi` It's all in one line. Mutt complains

Re: The editor variable

2000-08-14 Thread Michael Elkins
On Mon, Aug 14, 2000 at 06:14:31PM +0200, Caster wrote: Why something like this doesn't work: set editor=`if test $DISPLAY ; then echo gvim -c ":normal 2/^$/" +nohlsearch %s ; else echo vim -c ":normal 2/^$/" +nohlsearch %s ; fi` It's all in one line. Mutt complains about unknown -c

Re: The editor variable

2000-08-14 Thread jjtoth
On Mon, Aug 14, 2000 at 12:59:44PM -0400, Bob Bell ([EMAIL PROTECTED]) said: On Mon, Aug 14, 2000 at 06:14:31PM +0200, Caster [EMAIL PROTECTED] wrote: Hi! Why something like this doesn't work: set editor=`if test $DISPLAY ; then echo gvim -c ":normal 2/^$/" +nohlsearch %s ; else echo