exit-emacs - Exit MicroEmacs
n exit-emacs [exitCode]
Exit MicroEmacs back to the operating system. If no argument n is given and there are any unwritten, changed buffers, the editor prompts the user to discard changes. If an argument is specified then MicroEmacs exits immediately.
The numeric argument is defined as a bit-mask as follows:
3 exit-emacs == save-buffers-exit-emacs 2 exit-emacs == quick-exit
If the macro shut-down(3) is defined then it is invoked by the editor when it is closed. A user defined shutdown action may be associated with the close operation. It is the callers responsibility that the macro terminates correctly otherwise the editor will hang.
All buffers with a name starting with a '*' are assumed to be system buffers (i.e. *scratch*) and are not saved.
Modes 8 and 16 may be used where the user wishes to discard edited buffers on exiting and does not want to confirm the exit. Dictionaries should be configured to auto-save in user-setup(3).
An emergency exit command which forces the editor to quit may be implemented as 0x28 exit-emacs i.e. Force quit and exit with failed status. Internally this is what MicroEmacs uses to perform an emergency quit operation caused by signal fault etc.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2006/08/12
Generated On: 2006/10/07