Hi!
The documentation for jde-bug-key-bindings says
"The value of this variable is an association list. The car of
each element specifies a key sequence. The cdr specifies
an interactive command that the key sequence executes. To enter
a key with a modifier, type C-q followed by the desired modified
keystroke. For example, to enter C-s (Control s) as the key to be
bound, type C-q C-s in the key field in the customization buffer.
You can use the notation [f1], [f2], etc., to specify function keys."
As I have already bound the function keys to other very important things
in CDE like switching between virtual workspaces, I think I would like
to bind step-into, step-over, ... to C-F5 through C-F8.
The configure code associated with jde-bug-keybindings uses the
following match
(if (string-match "\\[\\(f[1-9][0-9]*\\)]" key)
thus, there is currently no way for specifying C-Fn keys (or Alt-Fn
keys, etc.).
The actual code looks like this
(lambda (sym val)
(if (boundp 'jde-mode-map)
(mapc (lambda (binding)
(let ((key (car binding))
(fcn (cdr binding)))
(if (string-match "\\[\\(f[1-9][0-9]*\\)]" key)
(progn
(define-key ;;1
jde-mode-map
(substring key
(match-beginning 1)
(match-end 1))
fcn)
(setq key (car (read-from-string key))))) ;;2
(define-key jde-mode-map key fcn))) ;;3
val))
(set-default sym val)))
I have one question regarding this. It was a while since I coded in
LISP, so I might be wrong here, but won't the line marked with ;;3
always be executed regardles of if ;;1 and ;;2 has executed or not?
I.e. the parentheses at the end of the line marked with ;;2 should be
moved to the end of the line marked with ;;3. As it is now, if you
define a function key, there would be two calls to define-key with
slightly different arguments...
On the other hand, should one really be able to edit in the editor
buffer while debugging a program? Also, I think it would be nice if some
minor-mode (or whatever is apropriate) were set in the editor buffer
while debugging and this mode contained nice, simple, easy-to-use
keybindings for the debug operations.
Don't get me wrong here, but C-c C-z C-s is quite cumbersome to use, and
almost all one-stroke key-bindings are already occupied with other
things. :|
BTW. I'm very impressed with JDebug! Thanks for doing this for all of
us! :)
/John
--
LM/ERA/LVA/KD John Olsson mailto:[EMAIL PROTECTED]
Ericsson Radio Systems AB, Box 1248, S-581 12 Linkoping
-------------------------------------------------------------
Phone: +46 13 321070 ECN: 868 1070 Fax: +46 13 287370
-------------------------------------------------------------
I was doing object-oriented assembly when I was 1 year old...
For some reason my mom insists on calling it "Playing with blocks"