after-load-file (augments, and augmentable only) in text:file-mixin
Called just after the editor is loaded from a file.
The argument to the method originally specified whether the save was
successful, but failures now trigger exceptions such that the method is
not even called. Consequently, the argument is always #t.
See also
can-load-file? and
on-load-file.
(voidsenda-text:file-mixinafter-load-fileChecks if the newly loaded file is write-only in the filesystem. If so, locks the editor with the
lockmethod. Otherwise unlocks the bufferFor each canvas returned from
get-canvasesit checks to see if thecanvas%'sget-top-level-windowmatches theframe:editor<%>interface. If so, it callsset-labelwith the last part of the filename (ie, the name of the file, not the directory the file is in).