trigger Slideshow printing via `executable-yield-handler'

Closes PR 11595
This commit is contained in:
Matthew Flatt 2011-01-08 07:03:36 -07:00
parent 67f3a22e44
commit 39e0921f90
2 changed files with 9 additions and 2 deletions

View File

@ -65,8 +65,7 @@
(lambda (who where-name where-port-num mode)
(error 'slideshow
"slide program attempted to make a network connection")))))
(dynamic-require (path->complete-path content) #f)
(done-making-slides))
(dynamic-require (path->complete-path content) #f))
(when (file-to-load)
(load-content (string->path (file-to-load))))

View File

@ -1223,6 +1223,14 @@
(when config:printing?
(do-print)))
(when config:printing?
;; Just before exiting normally, print the slides:
(let ([h (executable-yield-handler)])
(executable-yield-handler
(lambda (v)
(viewer:done-making-slides)
(h v)))))
(let ([eh (uncaught-exception-handler)])
(uncaught-exception-handler
(lambda (exn)