Lugaru's Epsilon
Programmer's
Editor 14.04

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 Epsilon Programmer's Editor 14.04 manual. Copyright (C) 1984, 2021 by Lugaru Software Ltd. All rights reserved.