jed-users mailing list

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

Re: [0.99-15] Some problems and questions


Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx> wrote:
>    if lower than ten, the line-part doesn't. If this column-part is
>    "08" or "09", I get the error-message "S-Lang Error: Syntax

  The "integer" function is parsing "08" as octal because of the
  leading 0.  Changing:
  
	compile_find_file (file, integer (line), integer (col));
  to:
        line = strtrim_beg (line, " \t0");
        col = strtrim_beg (col, " \t0");
	compile_find_file (file, integer (line), integer (col));

  should fix that.

>(b) The following problem is a bit difficult to explain. I'm not even
>    sure that it is not meant to be a feature. If I scroll down the
>    screen line-by-line, suddenly the content of the screen is moved
>    up by a whole page and the cursor position jumps to the top of the
>    screen moving down then line-by-line. If I scroll up, the same
>    happens in reverse direction. This effect gets stronger, if the
>    computer is under heavy load. To me the problem is, that my eye

  In many respects, the keyboard input routines work asynchronously
  from the display routines.  In particular, screen updates get
  delayed if there is pending input.  As a result, when the screen
  does get updated, the "current line" may be several lines below the
  bottom of the window.  So, the display code simply recenters the
  window to put the current line in the center.  This also explains
  why the effect depends upon the load.
  
>(c) I would like to have a key bound to a certain function regardless
>    of the mode I'm in. So, having for instance F7 on a PC-keyboard
>    bound to search_forward() in every mode. Can I do this without
>    changing jeds library files? This would be nice on a system, where
>    I don't have the rights to change files in /usr.

  Put, e.g.,
  
     public define global_mode_hook (hook)
     {
        local_setkey ("search_forward", WHATEVER);
     }
  
  in your .jedrc file.
  

>(d) A similar problem as above for functions: can I locally supersede
>    a single function from a library-package? I know that slang is no
>    oo-language, but perhaps there is a way although. I want to change
>    compile() for instance, so that it always saves my files without
>    asking me before. At home I can change acompile.sl of course, but
>    not on systems where I'm not admin.

  Yes: suppose the function "foo" is in somefile.sl.  Then put:
  
     require ("somefile");
     define foo ()
     {
         WHATEVER
     }

>(e) In site.sl there is a gdb-mode mentioned but commented out. Is it
>    available from somewhere or does jed support debugging in general?

  It was posted to this list sometime ago.  I have not included it in
  jed because it did not quite work right.

I hope I have answered your questions.
--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>.


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