Medley is what’s called a residential Lisp environment. A loose analogy is that the file is a database of the functions, variables, classes, methods, etc associated with that particular system. The proper way edit these is to use the in-system tools like SEdit, and then when you’re ready to save them to the files by either editing the fileCOMS directly or by calling FILES? which will process any entries that the system doesn’t know about and ask you what you want to do with them. Once you have the file defined you save it by calling MAKEFILE. Common Lisp has similar functionality in the various DEFSYSTEM libraries, like ASDF, MK-DEFSYSTEM, DEFSYSTEM, etc.,
In a fresh sysout when you load that file it will process the COMS and keep track of changes, so you can remake the file by calling MAKEFILE.
This is different from a system like SBCL where files are just text. There are advantages and disadvantages both ways.
> On Nov 24, 2025, at 4:46 PM,
pixel...@gmail.com wrote:
>
> Ah, that works well enough. I just tested it.
> So the by keeping a window open to the current fileCOMS you get a table of contents you can Meta o to select from - thanks!
> I suppose I just need to be very careful not to save the old definition of the opened fileCOMS if I add a function.
>
>
> Part of my annoyance prior was that I'd keep forgetting what I'd named my functions and have to SEE the file over and over again.
> This should help.
>
>
> On Monday, November 24, 2025 at 3:23:34 PM UTC-7
nicholas...@gmail.com wrote:
> +1 to Matt - but lets look deeper:
>
> Start by loading the source file into the system. Typically when loading the source you'd want to (LOAD "file-name-in-file-system") -- e.g., (LOAD "ATAN2TEST.LISP"). The "name of the file" for the purposes of the fileCOMS *does not* include the extension. When someone says "edit the file" with regard to what's stored within the file on the filesystem they're usually talking about editing the fileCOMS -- which would be (ED 'ATAN2TEST 'FILE) (I don't remember whether the 'FILE is optional if the name has no conflicting definitions.) -- that fires up an SEDIT on ATAN2TESTCOMS - the file package commands that control what is stored in the external file.
>
> The SEDIT on the fileCOMS provides an easy hook to get to the individual functions, variables, macros, constants, etc., in as much as you can select a name and meta-O to open the definition. You can also, from an exec (ED 'function-name 'FNS) (or 'VARS, or 'FUNCTIONS, or ... whatever file package type it has)
>
> We (should) never edit the file-in-the-filesystem -- we only edit the definitions and then use MAKEFILE and friends to store those back in a file-in-the-filesystem (basically a source-code database)
>
> -- Nick
>
>
>
>>
>> On Nov 24, 2025, at 14:09, Matt Heffron <
matthef...@gmail.com> wrote:
>>
>> SEdit edits S-EXPRs not files.
>>
>> Editing files is just something that it isn't designed to do.
>>
>> Sent via the Samsung Galaxy S22+ 5G, an AT&T 5G smartphone
>> Get Outlook for AndroidFrom:
lisp...@googlegroups.com <
lisp...@googlegroups.com> on behalf of
pixel...@gmail.com <
pixel...@gmail.com>
>> Sent: Monday, November 24, 2025 1:39:56 PM
>> To: Medley Interlisp core <
lisp...@googlegroups.com>
>> Subject: Revisiting loading a LISP file into SEdit.
>> So I'm attempting to load an entire ATAN2TEST.LISP for editing into SEdit and I get the following error. Prior my process was to manually FILESLOAD into an Exec then call ED(<func>) on the functions as I wanted to update them. I'm trying to recall if I've missed any details from our discussion.
>>
>> I guess my question is, what is the correct method?
>> I also tried ED(<myfile>) in various forms to no success.
>>
>>
>>
> To view this discussion visit
https://groups.google.com/d/msgid/lispcore/18652a59-ca69-48c9-870b-974d691f7f2fn%40googlegroups.com.