- Subject: Re: Question about mailedit.sl docs
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Mon, 31 Jul 2006 13:46:33 -0400
Marc Haber <mh+jed-users@xxxxxxxxxxxx> wrote:
>> definekey_reserved("my_goto_header(\"Subject\")", "s", "mailedit");
>> definekey_reserved("my_goto_header(\"From\")", "f", "mailedit");
>> definekey_reserved("my_goto_header(\"Expires\")", "e", "mailedit");
>
>With that, I get "Unknown keymap: mailedit" on startup.
The proper way to do this is to use a hook:
public define mailedit_mode_hook ()
{
local_setkey_reserved("my_goto_header(\"Subject\")", "s");
local_setkey_reserved("my_goto_header(\"From\")", "f");
local_setkey_reserved("my_goto_header(\"Expires\")", "e");
}
>I see. Why was goto_header defined in the first place if it is not
>useable and not used?
Are you sure?
# grep goto_header mailedit.sl
private define goto_header (header)
if (0 == goto_header (header))
Thanks,
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]