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-spell-word-pattern
      default-state-file-name
      default-translation-type
      default-word
      default-write-encoding
      . . .
   Changing Epsilon
   . . .

Previous   Up    Next
default-state-file-name  Variable Reference   default-word


Epsilon User's Manual and Reference > Variable Reference >

default-translation-type: preference variable

Default value: 5

When you read an existing file, Epsilon consults this variable to determine what kind of line translation to perform. If 5 (FILETYPE_AUTO), Epsilon examines the file's contents and selects one of the following translations, setting the buffer's translation-type variable to the selected translation. If this variable is set to any other value, Epsilon uses the specified translation without examining the contents of the file.

A value of 0 (FILETYPE_BINARY) makes Epsilon do no line translation, 1 (FILETYPE_MSDOS) makes Epsilon strip <Return> characters when reading and insert them when writing, 2 (FILETYPE_UNIX) makes Epsilon do no line translation, but indicates that the file contains text, 3 (FILETYPE_MAC) makes Epsilon replace <Return> characters with <Newline> characters when reading, and replace <Newline> characters with <Return> characters when writing.

For remote files (those that use URL syntax), Epsilon uses the force-remote-translation-type variable instead. Also see new-buffer-translation-type to change the translation rules for newly-created files and buffers.

More info:

Line Translation
Line Translation Primitives (Primitives)



Previous   Up    Next
default-state-file-name  Variable Reference   default-word


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