bound toggle-focus-between-definitions-and-interactions to c:f6

svn: r5068
This commit is contained in:
Robby Findler 2006-12-09 00:21:21 +00:00
parent bda927312b
commit 7f78ffb5ed
2 changed files with 11 additions and 2 deletions

View File

@ -373,6 +373,7 @@ TODO
(λ (frame) (send frame prev-tab)))))) (λ (frame) (send frame prev-tab))))))
(send drs-bindings-keymap map-function "c:x;o" "toggle-focus-between-definitions-and-interactions") (send drs-bindings-keymap map-function "c:x;o" "toggle-focus-between-definitions-and-interactions")
(send drs-bindings-keymap map-function "c:f6" "toggle-focus-between-definitions-and-interactions")
(send drs-bindings-keymap map-function "f5" "execute") (send drs-bindings-keymap map-function "f5" "execute")
(send drs-bindings-keymap map-function "f1" "search-help-desk") (send drs-bindings-keymap map-function "f1" "search-help-desk")
(send drs-bindings-keymap map-function "c:tab" "next-tab") (send drs-bindings-keymap map-function "c:tab" "next-tab")

View File

@ -44,6 +44,9 @@ the state transitions / contracts are:
[prefix frame: framework:frame^]) [prefix frame: framework:frame^])
(export framework:preferences^) (export framework:preferences^)
(define pref-debug? (getenv "PLTDRPREFDEBUG"))
(when pref-debug?
(printf "PLTDRPREFDEBUG: showing get and set calls\n"))
(define main-preferences-symbol 'plt:framework-prefs) (define main-preferences-symbol 'plt:framework-prefs)
@ -92,6 +95,8 @@ the state transitions / contracts are:
;; return the current value of the preference `p' ;; return the current value of the preference `p'
;; exported ;; exported
(define (get p) (define (get p)
(when pref-debug?
(printf "get ~s\n" p))
(cond (cond
[(pref-default-set? p) [(pref-default-set? p)
(let* ([g (gensym)] (let* ([g (gensym)]
@ -108,7 +113,10 @@ the state transitions / contracts are:
;; set : symbol any -> void ;; set : symbol any -> void
;; updates the preference ;; updates the preference
;; exported ;; exported
(define (set p value) (multi-set (list p) (list value))) (define (set p value)
(when pref-debug?
(printf "set ~s\n" p))
(multi-set (list p) (list value)))
;; set : symbol any -> void ;; set : symbol any -> void
;; updates the preference ;; updates the preference