jed-users mailing list

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

Re: Trouble with mail_mode (email.sl et al.)


On 29.06.09, Jens Wahnes wrote:
> I'm very new to jed so I might be overlooking something really basic
> here, yet I've tried for a while to figure out what goes wrong when I
> attempt to use wjed with mail_mode.  I downloaded the email.sl file
> from the website [1] and saved it to the "lib" directory.

> I then put autoload("mail_mode", "email") into my jed.rc and after I
> start jed, I push Esc x, enter mail_mode and all I get is a message
> saying "ifnot is undefined".  Did I miss some important step here?

ifnot seems a new addition to either Jed or S-Lang. Which version do you use?
(see Help>About Jed).

> In the Quick Reference, there is a mention of byte-compiling .sl
> files, so I tried that, too. 

Generally, byte compiling will speed up loading but not solve other
problems.

> Trying to byte_compile_file("email.sl",
> 0) gives 

> C:\Programme\JED\lib\email.sl:66: Expecting ;: found 'make_keymap'
> Line 66 of that file reads:

> ifnot (keymap_p(mode)) make_keymap (mode);

> which seems OK to me, but as I said, I'm new to jed, so maybe there is
> indeed some error in that code?  I doublechecked that the file
> downloaded correctly so there shouldn't be a transfer error here.

What happens if you replace:

-ifnot (keymap_p(mode)) make_keymap (mode);

with the traditional syntax

+!if (keymap_p (mode)) make_keymap (mode);

?

Günter



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


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