PR 9762
svn: r11776
This commit is contained in:
parent
081611f574
commit
1fa518f9d8
|
@ -816,9 +816,10 @@ profile todo:
|
||||||
(or (send editor get-filename)
|
(or (send editor get-filename)
|
||||||
untitled))))
|
untitled))))
|
||||||
|
|
||||||
;; open-and-highlight-in-file : srcloc -> void
|
;; open-and-highlight-in-file : (or/c srcloc (listof srcloc)) -> void
|
||||||
(define (open-and-highlight-in-file srclocs)
|
(define (open-and-highlight-in-file raw-srcloc)
|
||||||
(let ([sources (filter values (map srcloc-source srclocs))])
|
(let* ([srclocs (if (srcloc? raw-srcloc) (list raw-srcloc) raw-srcloc)]
|
||||||
|
[sources (filter values (map srcloc-source srclocs))])
|
||||||
(unless (null? sources)
|
(unless (null? sources)
|
||||||
(let* ([debug-source (car sources)]
|
(let* ([debug-source (car sources)]
|
||||||
[same-src-srclocs
|
[same-src-srclocs
|
||||||
|
|
|
@ -382,7 +382,7 @@ all of the names in the tools library, for use defining keybindings
|
||||||
|
|
||||||
(proc-doc/names
|
(proc-doc/names
|
||||||
drscheme:debug:open-and-highlight-in-file
|
drscheme:debug:open-and-highlight-in-file
|
||||||
(srcloc? . -> . void?)
|
((or/c srcloc? (listof srcloc?)) . -> . void?)
|
||||||
(debug-info)
|
(debug-info)
|
||||||
@{This function opens a DrScheme to display
|
@{This function opens a DrScheme to display
|
||||||
@scheme[debug-info]. Only the src the position
|
@scheme[debug-info]. Only the src the position
|
||||||
|
|
Loading…
Reference in New Issue
Block a user