Skip to content

Commit 03b7ffa

Browse files
committed
export and document handler:update-currently-open-files
1 parent dbb1ab3 commit 03b7ffa

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

gui-lib/framework/main.rkt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,20 @@ was never saved, then the first element of the list is @racket[#f].
10941094
@{Sizes the @racket['framework:recently-opened-files/pos] preference list
10951095
length to @racket[num].})
10961096

1097+
(proc-doc/names
1098+
handler:update-currently-open-files
1099+
(-> void?)
1100+
()
1101+
1102+
@{
1103+
This is called when new files are opened or when files
1104+
are closed or when the frontmost window changes. As long as the app
1105+
is not currently exiting, it updates the
1106+
preference with the key @racket['framework:last-opened-files] to
1107+
hold a list of list of paths, to record the lists of files that
1108+
are currently open in tabs.
1109+
})
1110+
10971111
(proc-doc/names
10981112
icon:get-paren-highlight-bitmap
10991113
(-> (is-a?/c bitmap%))

gui-lib/framework/private/sig.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
open-file
290290
install-recent-items
291291
add-to-recent
292-
update-currently-open-files ;; not provided outside of the unit
292+
update-currently-open-files
293293
set-recent-position
294294
set-recent-items-frame-superclass
295295
size-recently-opened-files))

0 commit comments

Comments
 (0)