* Remove calls to OPENFILE
OPENFILE is a residual Interlisp function that returns a litatom instead of a stream. In almost all cases, this immediate causes an error that litatom files are no longer supported. I have found (FINDCALLERS) all the examples in lispusers/sources/library/ and replaced OPENFILE with OPENSTREAM (except for the calls from \PEEKPUP and \PEEKNS, that I didn't track down). There was a trivai call in COMPILE.FILECHECK in COMPILE, but that function is not called anywhere. So I removed it.
* ADIR: remove OPENFILE calls, also another stab at \COPYSYS
With respect to \COPYSYS, this replaces the draft PR #1263. This applies TRUEFILENAME at the start, but remembers whether it was in fact a pseudohost and restores that for the return value. So if you start in a pseudo world you end up there.
---------
Co-authored-by: Larry Masinter <lmm@acm.org>
CLEANUP is confused about how to compile. This had FILETYPE = CL-COMPILE-TYPE, with an existing LCOM. It produced a new DFASL, but the LCOM was still hanging around. I'm deleting the LCOM here, pushing the new DFASL.
Check if the (STREAM ACCESS) bits are NIL, indicating a closed stream, and
if so do not attempt to close the file again
Co-authored-by: Nick Briggs <nicholas.h.briggs@gmail.com>
Co-authored-by: Larry Masinter <lmm@acm.org>
* PDFSTREAM: first implementation
Makes PS file, then applies separate utility (if available) to convert PS to PDF
* POSTSCRIPTSTREAM: Adds extra field to postscript data for PDFSTREAM filename
* HARDCOPY: fixes printer menu
* PDFSTREAM: define PDF fonts as POSTSCRIPT fonts
* PDFSTREAM: fix convert template
* PDFSTREAM: Fix logic around closing the postscript sub-stream
* PDF Stream: slight generalization
* PDFSTREAM uses AFTERCLOSE streamprop so doesn't require change to POSTSCRIPTSTREAM
* UNIXUTILS: moved PROCESS-COMMAND and SLASHIT from GITFNS and PSEUDOHOST resp.
PROCESS-COMMAND executes a command in process-stream, like ShellCommand, but returns a completion code and not what happens in the shell. SLASHIT is an approximation (doesn't deal with versions) of converting a Medley file name to its Unix equivalent, to use in commands
* GITFNS: PROCESS-COMMAND moved to UNIXUTILS, cleanups from previous (unexamined) PR
The other PR will be cleaned out
* PSEUDOHOSTS: Moved SLASHIT to UNIXUTILS, also includes minor change in previous (unexamined) PR, to be removed
* PDFSTREAM: wrapped FULLNAME around TRUEFILENAME
* Restore POSTSCRIPTSTREAM
* UNIXUTILS: Added UNIX-FILE-NAME
Produces a Unix filename corresponding to a Medley file name (slashes, version number). For use in ShellCommand an PROCESS-COMMAND.
* PDF-STREAM: added SEE-PDF
A little stub that (on a mac) does a shell command to open Preview on the Unix-named file corresponding to a medley name
(Also added back some key functions that got lost in a bad edit)
* Pick up master changes
---------
Co-authored-by: Larry Masinter <lmm@acm.org>
This has a FILESLOAD for lispusers/UNBOXEDOPS that somehow didn't get executed by the previous cleanup. (That may be a separate issue with the compiler interface, not clear that it always makes the right choices even when the FILETYPE property is set.)
But this also begs the question, why is UNBOXEDOPS on lispusers?
* SPY.POINTERS is always T (no 2-byte atoms)
* Set SPY to not record entries when in \BACKGROUND-YIELD or (conditionally) backgroudn process
* Use \IGNORE.BACKGROUND as global variable, initially T; clean up declarations
* changes used DECLARE%%: incorrectly, now fixed
* rewrite INTERPRESS to not pollute pool of CL:CONSTANTP variables in common use
* update some functions that are (inappropriately) tied to INTERPRESS
* no change to SKETCHOPS needed
* still need one \IPC 'constant' from INTERPRESS
* changes to WINDOW GLOBALVARS another time
* recompile XXFILL
* fix a few other messes exposed
* GATHEREXPORTS uses standard MAKEFILE machinery
So that it gets all the normal file properties (FILE, FILEDATES) when it is LOADed. Also nothing special about setting up its reader environment
* GATHEREXPORTS again: PRETTYDEF likes only litatom filenames
(which probably should be fixed)
* CALENDAR, AOFD: Calendar had a Y2K problem, AOFD did not allow string-streams to reopen
There still may be some Y2K issues, I fixed the obvious ones, including how it interacted with Tedit
* try recompiling
---------
Co-authored-by: Larry Masinter <LMM@acm.org>
Fixes long-standing irritants (for me at least). SELECTC is highlighted and format like SELECTQ and SELCHARQ. And left-button in the title bar with the copy (shift) key down does a bksysbuf of the thing being edited. The menu is available under the middle button, moving and reshaping still provided by modernize with the shift not down.
* Another pass on CLOSEALL simplify by calling (OPENP)
* Put back in checks for CLOSEALL IOMODE USERVISIBLE
* \TERM.OFD and \LINEBUF.OFD are bound, no global
* getting rid of \OPENFILES everywhere
* one more \OPENFILES
* Yet another Logo with parameters for substrings. WINDOW.BITMAP move to Window
* Added LOGOW.DFASL, so rm LOGOW.LCOM
* LOGOW: Add local variables for most of the hard-coded constants to make it easier to experiment with adjusting said constants. Adding kerning for substring1.
* LOGOW: Add more kerning options. Cretaed separate kerned.prin3 function.
* Set default params to Option 8. Added some top and right margins when placing LOGOW in screen so it doesn't look so squished into the corner.
---------
Co-authored-by: Frank Halasz <frank@halasz.org>