File tree Expand file tree Collapse file tree
gui-doc/scribblings/framework Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8484 through @racket[end].
8585 }
8686
87+ @defmethod*[(((tabify-selection/reverse-choices (start exact-integer? (send this get-start-position))
88+ (end exact-integer? (send this get-end-position)))
89+ void?))]{
90+ Sets the tabbing for the lines containing positions @racket[start]
91+ through @racket[end], but if there are multiple valid tabbings to cycle through,
92+ this method should cycle through the choices in reverse order. The default
93+ implementation calls @method[racket:text<%> tabify-selection].
94+
95+ @history[#:added "1.77 " ]
96+ }
97+
8798 @defmethod*[(((tabify-all) void?))]{
8899 Tabs all lines.
89100
Original file line number Diff line number Diff line change 373373 tabify-on-return?
374374 tabify
375375 tabify-selection
376+ tabify-selection/reverse-choices
376377 tabify-all
377378 insert-return
378379
675676 (when (< first-para end-para)
676677 (end-busy-cursor)))))))
677678
679+ (define/public (tabify-selection/reverse-choices [start-pos (get-start-position)]
680+ [end-pos (get-end-position)])
681+ (tabify-selection start-pos end-pos))
682+
678683 (define/public (tabify-all) (tabify-selection 0 (last-position)))
679684 (define/public (insert-return)
680685 (begin-edit-sequence #t #f )
17141719 (λ (x) (send x select-up-sexp)))
17151720 (add-edit-function "tabify-at-caret "
17161721 (λ (x) (send x tabify-selection)))
1722+ (add-edit-function "tabify-at-caret/reverse-choices "
1723+ (λ (x) (send x tabify-selection/reverse-choices)))
17171724 (add-edit-function "do-return "
17181725 (λ (x) (send x insert-return)))
17191726 (add-edit-function "comment-out "
18271834 (send keymap map-function key func))
18281835
18291836 (map "TAB " "tabify-at-caret " )
1837+ (map "s:TAB " "tabify-at-caret/reverse-choices " )
18301838
18311839 (map "return " "do-return " )
18321840 (map "s:return " "do-return " )
Original file line number Diff line number Diff line change 3434
3535(define pkg-authors '(mflatt robby))
3636
37- (define version "1.76 " )
37+ (define version "1.77 " )
3838
3939(define license
4040 '(Apache-2.0 OR MIT))
You can’t perform that action at this time.
0 commit comments