jed-users mailing list

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

Hooks and debugging


I'm trying to learn about hooks and stuff.  Here are a few
questions.

The following piece of code (copied from doc/txt/hooks.txt and
edited) was not called when in my .jedrc file.  But, it was called
when I put it in my defaults.sl file.  Does anyone have a quick
explanation for which things should go in the
.jedrc file and which in the defaults.sl file?

    define keybindings_hook (name)
    {
        if (name == "emacs")
        {
            % Change Alt-D from delete word to delete line.
            unsetkey ("\ed");
            setkey ("delete_line", "\ed");
        }
    }

Perhaps a note could be added to doc/txt/hooks.txt about where to
put keybindings_hook.

I used the following for debugging my SLang code.  Does anyone have
suggestions for a better way?

    pop2buf ("*debugging*");
    eob ();
    insert("(keybingings_hook) Dave's debugging stuff");

I've tried using the message() function, but the messages seem to
get over-written.  By the way, what is the difference between
message() and vmessage()?

Ahhh.  I just found fopen() and fprintf().  I'll have to try those. 
Wow.  There is a lot of power there, if I could only learn to use
it.

I saw a mention (in circle.sl) about the "non-standard module
debug.sl", but I could not find it anywhere.  Is there such a
thing?

Thanks in advance.

  - Dave

-- 
Dave Kuhlman
dkuhlman@xxxxxxxx
http://www.rexx.com/~dkuhlman

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


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