Lugaru's Epsilon
Programmer's
Editor 14.04

Context:
Epsilon User's Manual and Reference
   . . .
   Command Reference
      abort
      about-epsilon
      align-by-tab
      . . .
      zoom-window
   Variable Reference
      . . .
      default-word
      default-write-encoding
      delete-hacking-tabs
      delete-options
      detect-encodings
      . . .
   Changing Epsilon
   . . .

Previous   Up    Next
default-write-encoding  Variable Reference   delete-options


Epsilon User's Manual and Reference > Variable Reference >

delete-hacking-tabs: preference buffer-specific variable

Default value: 0

If 1, when <Backspace> deletes a tab, it first turns the tab into the number of spaces necessary to keep the cursor in the same column, then deletes one of the spaces. If 2, when <Backspace> deletes a space, it deletes additional spaces and tabs until it reaches the previous tab column (set by soft-tab-size or tab-size). The first setting makes <Backspace> treat tabs more like spaces; the second makes it treats spaces more like tabs.

You can add these bit settings to get both behaviors. Other bits restrict when deleting a space deletes additional spacing to reach a tab column. The bit 4 does this only within a line's indentation (in the run of whitespace at the start of a line).

The 8 bit deletes multiple spaces only when the deletion starts in a tab column. So if tabs are every 4 columns and a line has 10 spaces, pressing <Backspace> three times starting in column 10 will delete one space, one space, then four spaces.

The 0x10 bit deletes multiple spaces only when in the middle of spacing; there must be spaces or tabs both before and after point.

The <Backspace> key (or to be precise, the backward-delete-character command it runs by default) never deletes multiple spaces due to delete-hacking-tabs when given a numeric prefix argument.

Before backward-delete-character checks this variable, it looks for a mode-specific one, a variable whose name consists of the current mode name followed by -backward-delete-character. If found, it uses that variable's value instead.

More info:

Inserting and Deleting
backward-delete-character
python-delete-hacking-tabs
Formatting Improvements in Epsilon 13 (Changes from Older Versions)



Previous   Up    Next
default-write-encoding  Variable Reference   delete-options


Lugaru Epsilon Programmer's Editor 14.04 manual. Copyright (C) 1984, 2021 by Lugaru Software Ltd. All rights reserved.