TutorialBuffers and windows




Prev | Up | Next | Back | Forward | Tutorial Top

Ada-ASSURED is a multi-buffer, multi-window editor. Files are read into buffers and displayed in windows. You are already displaying a given buffer in multiple windows. You can, of course, create as many windows and buffers as you wish.

Command new (menu: File/New   X: Shift+F2   NT: Ctrl+N) creates a new buffer. Buffers of syntactic category compilation contain Ada code whereas buffers of syntactic category TEXT consist of uninterpreted text.

The Ada syntax checker, formatter, and style enforcer are all available, on demand, in TEXT buffers.

The MESSAGES view is also supported for TEXT buffers, albeit that the output is not kept up to date as the buffer is edited, but is produced only on demand.

The syntactic mode of a buffer can be changed using command coerce-buffer (X menu: View/Buffers/Coerce Buffer   NT menu: Window/Coerce Buffer). Thus, you can use Ada-ASSURED with full Ada language sensitivity at one moment, and with no language sensitivity the next.


X Windows

Buffers are removed by the command delete-buffer (menu: View/Buffers/Delete Buffer   key ^Xk), and windows are removed by the command delete-window (menu: View/Windows/Delete Window   key: ^Xd).

    Delete all other windows except the original *untitled* window. Since delete-window deletes the window from which the command was invoked, be sure to carefully select the window you wish to delete. To avoid mistakes, you can invoke it from the menu of the window you wish to delete.

 

NT

Windows are removed by the command close-window (menu: Window/Close Window   key: Ctrl+D). A buffer is removed by removing all windows associated with it.

    Remove all other windows except the original *untitled* window. Since close-window removes the window from which the command was invoked, be sure to carefully select the window you wish to remove. To avoid mistakes, you can instead invoke Close from the window menu of the window you wish to delete.


Forward