youthrest.blogg.se

Quit emacs
Quit emacs




quit emacs quit emacs

This function may delete window if and only if it still shows that buffer. The fourth element is the buffer whose display caused the creation of this parameter. If this function deletes window, it subsequently tries to reselect the window named by that element. The third element is the window selected at the time the parameter was created. If that buffer is still live when window is quit, then this function may reuse window to display it. The parameter’s second element is either one of the symbols window or frame, or a list whose elements are the buffer shown in window before, that buffer’s window start and window point positions, and window’s height at that time. frame and window affect how the window is quit, while same and other affect the redisplay of buffers previously shown in window. The first element of the quit-restore parameter is one of the symbols window, meaning that the window has been specially created by display-buffer frame, a separate frame has been created same, the window has only ever displayed this buffer or other, the window showed another buffer before. The function’s behavior is determined by the four elements of the list specified by window’s quit-restore parameter (see Window Parameters). The optional argument window must be a live window and defaults to the selected one. This function handles window and its buffer after quitting. function quit-restore-window \&optional window bury-or-kill ​ The functions in quit-window-hook are run before doing anything else. It calls the function quit-restore-window described next to deal with the window and its buffer. With prefix argument kill non- nil, it kills the buffer instead of burying it. The argument window must be a live window and defaults to the selected one. This command quits window and buries its buffer. command quit-window \&optional kill window ​ The following command uses information on how the window for displaying the buffer was obtained in the first place, thus attempting to automate the above decisions for you. Finally, you might want to either bury (see Buffer List) or kill (see Killing Buffers) the window’s buffer. If, on the other hand, a window has been reused for displaying the buffer, you might prefer showing the buffer previously shown in that window, by calling the function switch-to-prev-buffer (see Window History). If the buffer is shown on a separate frame, you might want to call delete-frame (see Deleting Frames) instead. Internally this is what MicroEmacs uses to perform an emergency quit operation caused by signal fault etc.When you want to get rid of a window used for displaying a buffer, you can call delete-window or delete-windows-on (see Deleting Windows) to remove that window from its frame. Dictionaries should be configured to auto-save inĪn emergency exit command which forces the editor to quit may be implemented as 0x28 exit-emacs i.e. 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. NOTESĪll buffers with a name starting with a ' *' are assumed to be system buffers (i.e. It is the callers responsibility that the macro terminates correctly otherwise the editor will hang. A user defined shutdown action may be associated with the close operation. Shut-down(3) is defined then it is invoked by the editor when it is closed. This mode does not operate when bit 1 is set.įorces the program exit status to be 1 (non-zero), which is interpreted by any parent task as an error status.Įxit-emacs may be used to reproduce the behavior of This mode does not operate when bit 1 is set.ĭiscard changed buffers (except the history and registry) and create a auto save file(s) with the changes from unsaved buffers.

#Quit emacs code#

The behavior is modified by flags 8 and 16.ĭefine the exit code exitCode from MicroEmacs, the default when omitted is 0.ĭiscard changed buffers (except the history and registry) and delete any backup files associated with the edited buffer(s). Writes out all changed buffers to the files they were read from, saves all changed dictionaries, killing any running commands and exits the editor. Saves all changed dictionaries, killing any running commands and exits the editor. Prompting the user before saving any files, writes out all changed buffers to the files they were read from. The numeric argument is defined as a bit-mask as follows: If an argument is specified then MicroEmacs exits immediately. If no argument n is given and there are any unwritten, changed buffers, the editor prompts the user to discard changes. Exit-emacs(2) Įxit MicroEmacs back to the operating system.






Quit emacs