All Manuals > LispWorks IDE User Guide > 5 Session Saving

NextPrevUpTopContentsIndex

5.4 Saving sessions

This section describes how you can use the Saved Sessions window to save a session, schedule regular saving, and manage your saved sessions.

Choose LispWorks > Saved Sessions... to raise the Saved Sessions window.

Figure 5.1 The Saved Sessions window

In the Saved Sessions tab is a list of known saved sessions. The default session is marked with * . If you select a session (other than LispWorks Release) in the list, you can see details of when and where it was saved in the Details: area.

To save a session from the running image, click the Save Now button, which raises the Save Session dialog (see The Save Session dialog and actual saving).

To launch a session, select it in the list and click the Launch button. This invokes the saved session.

To delete a session, select it in the list and click the Delete button. Note that this does not merely remove it from the list but permanently deletes the session, deleting the actual file (and application bundle on Mac OS X) from the disk.

To make a session be the default saved session, select it in the list and click the Set As Default button. This causes LispWorks images to redirect to this session when they start (see Redirecting images to a Saved Session image).

5.4.1 Scheduling automatic session saving

You can set up automatic periodic session saving using the Scheduled tab of the Saved Sessions controller window.

Figure 5.2 The Scheduled tab of the Saved Sessions window

Select or deselect Save session using this schedule to switch automatic saving on or off.

You can select days in the week and a time of the day to do the saving.

When the saving time is reached, the system raises the Save Session dialog and waits for some period of time to allow you to change the settings, cancel the saving, or confirm it. If the period of time passes without you cancelling, the system proceeds to do the saving. The period of time to wait is set by the Allow cancellation option.

Click the Defaults... button to raise the Save Session dialog which allows you to set the parameters for the saving. When you confirm, it does not save the session, but remembers the settings and uses them when doing the automatic saving.

5.4.2 The Save Session dialog and actual saving

Click the Defaults... button in the Scheduled tab of the Saved Sessions controller window to raise the Save Session dialog.

Figure 5.3 Setting the defaults for scheduled session saving

Enter a name for the session in the Session name: box. This name will be displayed in the list of sessions in the Saved Sessions tab of the Saved Sessions controller window.

Under File name: you can define the filename in which to save the image (on non-Mac OS X platforms) or the name of the application bundle (on Mac OS X). The name is constructed by a prefix, optionally followed by one or more of the Version (of LispWorks), the Weekday , the Date or the Time . The full name that would be used is displayed after Sample: . Note that:

  1. The name does not contain the file type. On Cocoa it adds ".app" automatically.
  2. The Weekday, Date and Time are derived from the moment when the Save Session dialog was raised. They are not updated.

Under Options: there are additional options:

  1. You can change the directory in which to save the application bundle in the Save application bundle in directory: box.
  2. You can specify that the saved session is the default session by selecting Use as default session . This means that LispWorks images will redirect to it (see Redirecting images to a Saved Session image).
  3. The saving process can be made to overwrite an existing application bundle if it exists by selecting Overwrite existing application bundle . If this is not checked the saving process refuses to save on top of an existing application bundle.
  4. You can specify that the saved session will reload the initialization files when it restarts, by selecting Re-load init files when starting session .

When you click OK to confirm the dialog, the session saving is scheduled.

5.4.3 Saving a session interactively

If you invoked the Save Session dialog from the Save Now button, it appears as described in Scheduling automatic session saving except that a default Session name: is provided and there is also an option Remember these settings . If this is selected, then when you confirm the saving the settings are remembered and used the next time this dialog appears.

Once you click OK to confirm, the saving starts. First all the IDE interfaces are destroyed in a way that makes it possible to resurrect them. Then multiprocessing is stopped. It then saves the LispWorks image, including an application bundle on Cocoa. While it is saving it prints messages to the console. Once it finished saving it restarts the IDE and all its interfaces. The pathname of the saved application bundle is printed to the background output as well.

If there is an error during the saving, you can interact with it via the console. There is a restart "Abort saving and restart the IDE" to allow you to return to the IDE.


LispWorks IDE User Guide (Macintosh version) - 13 Sep 2017

NextPrevUpTopContentsIndex