Generic Function | Package: ide | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## ask-before-auto-saving

Arguments: configuration

Returns (or sets with setf) whether a Save All confirmation dialog will appear whenever unsaved files are about to be saved automatically. If true, then the files will be saved only if you agree to save them. If `nil`, the files are simply saved (though you will still be prompted for a save pathname for any file that has not yet been saved). When there are no unsaved changes, the dialog will never appear and no saving will be done.

Automatic file saving is done when exiting the IDE, running a project or form, opening a project, creating a new project, closing the current project, generating a standalone executable or distribution, or using the Find Required Common Graphics Modules button on the Include tab of the Project Manager dialog. These are times when it is usually desirable to save everything before continuing the operation. Auto-saving affects only files related to the current project except when exiting the IDE, when it also affects other unsaved editor buffers.

The dialog has the following three buttons: Yes to save files and then proceed, No or Discard to skip saving files and proceed anyway, and Cancel to skip saving files and cancel the operation that initiated the saving. The second button says Discard when selecting it would cause any unsaved changes to be lost, and No when it would simply leave unsaved changes that may be saved later. Discard will appear when opening a project, creating a new project, or closing the current project, since choosing it would discard unsaved changes to the old project. Discard will also appear when exiting the IDE, since choosing it would discard all unsaved changes.

Initially all files that would be auto-saved are shown selected in a list widget, but you may deselect some of the files in order to save only the remaining selected ones.

There is a check-box for this property on the IDE 1 tab of the Options dialog. This property is on by default.

ask-before-auto-saving is a property of the `configuration` class.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version