jed-users mailing list

[2008 Date Index] [2008 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: mailedit and mail_mode


On Sun, 14 Dec 2008, John E. Davis wrote:

> Duke <dukeofperl@xxxxxxx> wrote:
> > define mail_hook ()
> >{
> >    mailedit_mode ();
> >    local_setkey ("mail_send", "^C^C");
> >    local_setkey ("mail_kill_buffer", "^Xk");
> >    local_setkey ("mailalias_expand", "^C^E");
> >}
> >
> > and
> >
> > autoload("mail_mode","mail_mode");
> >
> > If I use Jed as my MUA, I see (mailedit) in the status line. I never
> > see anything about mail_mode.
>
> This is because you used mailedit_mode in your mail_hook.  If you want
> mail_mode, you will have to add it but you cannot have both-- choose
> one or the other.

OK!! They _are_ mutually exclusive. Are you aware of their
differences? Which would you recommend?


> > It I use Pine as my MUA and use Jed as the external editor with:
> >
> > Editor = jed -tmp -f mail_mode
> >
> > Jed comes up OK, but all I see in the status line is (Text). Is that
> > correct behavior? How do I know that mail_mode is actually "in play"?
>
> I know nothing about Pine, but my guess is that pine is invoking jed
> using:

Here's what I was able to glean from:

http://www.zrox.net/Mail/Pine/write.html

"You can use any editor you want for the editor= setting. Pine will
create a temp file and pass it as the parameter to the command you
specify. The editor should write to the same file, and Pine will read
it back into the composer as the message body when you quit the
alternate editor. Make sure that your editor saves in a format that is
acceptible to be sent as an email message body."

>    jed -tmp -f mail_mode FILENAME
>
> What you really want is:
>
>    jed FILENAME -tmp -f mail_mode
>
> If so, you might want to try a shell script to invoke jed:
>
>    Editor = jed-mailmode.sh
>
> Here jed-mailmode.sh would look something like:
>
>   #!/bin/sh
>   exec jed $1 -tmp -f mail_mode

Would you then still make the above recommendation?
-- 
Duke Normandin
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2008 date index] [2008 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]