Subject: problems calling alternate editor with cmd-line args

From: Noah Abraham Levitt <[email-masked]>
Date: Fri, 15 Dec 2000 15:08:59 -0800 (PST)

I have problems using an alternate editor with command line
arguments.  I'd like to be able to use:

  vim -c "set tw=72"

as my alternate editor.  How can I do this without doing anything
external to pine (like making an alias)?

If it's not possible, could you point me to the place in the source code
where the alternate editor is called?

Thanks,
Noah

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Eduardo Chappa <[email-masked]>
Date: Fri, 15 Dec 2000 15:50:02 -0800 (PST)

*** Noah Abraham Levitt ([email-masked]) wrote in the pine-info list today:

:) I have problems using an alternate editor with command line
:) arguments.  I'd like to be able to use:
:)
:)   vim -c "set tw=72"
:)
:) as my alternate editor.  How can I do this without doing anything
:) external to pine (like making an alias)?

what problem are you having?, I do not use vim, but that command seemed to
have worked fine for me.

:) If it's not possible, could you point me to the place in the source code
:) where the alternate editor is called?

Take a look at pico/pico_os.c, there's a function called "alt_editor" that
you may want to check.

-- 
Eduardo
http://www.math.washington.edu/~chappa/pine/

---

From: Gopi Sundaram <[email-masked]>
Date: Fri, 15 Dec 2000 23:06:28 -0500 (EST)

> arguments.  I'd like to be able to use:

Try escaping the " marks with a \

The " marks may be lost when passed to a shell, otherwise.

-- 
Gopi Sundaram
[email-masked]
http://www.cse.sc.edu/~gopalan/Pine/

---

From: Ron Poulton <[email-masked]>
Date: Fri, 15 Dec 2000 21:08:56 +0000 (GMT)

> where the alternate editor is called?

Also ensure that 'vim' is in your PATH.  If not, you need to specify
an absolute path, i.e. /usr/bin/vim -c \"set tw=72\"

--
       Ron Poulton             Caffeinate.
EMail: thok at technologist.com      Code.
  Web: http://www.thok.net        Compute.
Just toss that ham in the frying pan!
--
Electrical Engineers do it with less resistance.

---

From: Ron Poulton <[email-masked]>
Date: Fri, 15 Dec 2000 21:29:07 +0000 (GMT)

Thanks for all the help.  It turns out I needed to do the following:

1) PROPERLY add "comments @ thok.net" to my alt-addresses.  What I
   had done was tossed all my alternate addresses on one line,
   separated by spaces, instead of using "A"dd as I should have.

2) Set up the role as I was already doing.

Again, thanks.  I'll be back for more.  I'm sure of it! :>  The only
hitch is I have to do this routine for each EMail address I set up,
but that's pretty simple.  (I have one for each piece of software I've
written.  Simple.  Heh.)

--
       Ron Poulton             Caffeinate.
EMail: thok at technologist.com      Code.
  Web: http://www.thok.net        Compute.
Just toss that ham in the frying pan!
--
Mandrell: "You know what I think?"
Doctor:   "Ah, ah that's a catch question. With a brain your size you
	  don't think, right?"
		-- Dr. Who

---

From: Noah Abraham Levitt <[email-masked]>
Date: Sat, 16 Dec 2000 17:11:52 -0500 (EST)

I'm using pine 4.21 btw and haven't tried this with a more recent
version, but I looked through the release notes and didn't see any
mention...

> what problem are you having?, I do not use vim, but that command seemed to

It opens a second file called "set tw=72" or somesuch.

I also tried it with a bunch of other combinations of single and double
quotes and with backslashes and stuff, but nothing I tried worked.

> Take a look at pico/pico_os.c, there's a function called "alt_editor" that

Thanks.