Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Commands by Topic
      . . .
      The Screen
         Display Commands
         Horizontal Scrolling
         Windows
         . . .
         The Bell
      Buffers and Files
         Buffers
         Files
         File Variables
         . . .
      Starting and Stopping Epsilon
         Session Files
         File Associations
         Sending Files to a Prior Instance
         MS-Windows Integration Features
      . . .

Previous   Up    Next
The Bell  Commands by Topic   Reading Files


Epsilon User's Manual and Reference > Commands by Topic > Buffers and Files >

Buffers

The Ctrl-X B command prompts you for a buffer name. The command creates a buffer if one with that name doesn't already exist, and connects the buffer to the current window.

The new-file command creates a new buffer and marks it so that Epsilon will prompt for its file name when you try to save it. It doesn't prompt for a buffer name, unlike Ctrl-X B, but chooses an unused name.

You can customize the behavior of the new-file command by setting the variables new-file-mode and new-file-ext. The new-file-mode variable contains the name of the mode-setting command Epsilon should use to initialize new buffers; the default is the c-mode command. The new-file-ext variable contains the extension of the file name Epsilon constructs for the new buffer; its default is ".c".

To get a list of the buffers, type Ctrl-X Ctrl-B. This runs the bufed (for buffer edit) command, described fully in Buffer List Editing. Basically, bufed lists your buffers, along with their sizes and the files (if any) contained in those buffers. You can then easily switch to any buffer by positioning point on the line describing the buffer and pressing the <Space> key. The bufed command initially positions point on the buffer from which you invoked bufed. Press Ctrl-G if you decide not to switch buffers after all.

The Ctrl-X K command eliminates a buffer. It asks you for a buffer name and gets rid of it. If the buffer has unsaved changes, the command warns you first.

The Ctrl-X Ctrl-K command eliminates the current buffer, just like Ctrl-X K, but without asking which buffer you want to get rid of. The kill-all-buffers command discards all user buffers.

Whenever Epsilon asks you for a buffer name, it can do completion on buffer names, and will list matches in a pop-up window if you press "?".

Another way to switch buffers is to press Ctrl-<Tab>. This command switches to the buffer you last used. If you press <Tab> again while still holding down Ctrl, you can switch to still older buffers. Hold down Shift as well as Ctrl to move in the reverse order. You can press Ctrl-G to abort and return to the original buffer.

You can also change to another buffer using the next-buffer and previous-buffer commands. They select the next (or previous) buffer and connect it to the current window. You can cycle through all the buffers by repeating these commands. You can type F12 and F11, respectively, to run these commands. If your keyboard doesn't have these keys, you can also type Ctrl-X > and Ctrl-X <.

Standard bindings:

  Ctrl-X B  select-buffer
 Ctrl-X Ctrl-B  bufed
 Ctrl-X K  kill-buffer
 Ctrl-X Ctrl-K  kill-current-buffer
 Ctrl-<Tab>  switch-buffers
 F12, Ctrl-X >  next-buffer
 F11, Ctrl-X <  previous-buffer
   kill-all-buffers
   new-file
 



Previous   Up    Next
The Bell  Commands by Topic   Reading Files


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.