3

The GNU APL documentation on the line editor seems to assume one already knows how to use it. I only see mention of what commands/syntax '... are not fully supported in GNU APL'.

Compare with the documentation of Dyalog's APL ∇-editor, or MicroAPL.

I'd be willing to prepare a patch to submit for the documentation if anyone has a reference.

Adám
  • 6,573
  • 20
  • 37
Russtopia
  • 31
  • 1

2 Answers2

4

The main developer of GNU APL, Jürgen Sauermann, has told me that GNU APL's editor is a clone of APL2's line editor, and thus should support the same commands:

command action
[⎕] display the current whole definition
[⎕2 7 1 …] display specific lines
[⎕2-7] display a range of lines
[⎕-7] display all lines until a specific line
[⎕7-] display all lines beginning with a specific line
[7] code replace a specific line
[2.1] code insert a line between two lines
[∆2 7 1] delete specific lines
[∆2-7] delete a range of lines
[∆-7] delete all lines until a specific line
[∆7-] delete all lines beginning with a specific line
[→] quit without saving
[2⎕7] display line 2 for editing, placing the cursor at position 7
[2⎕0] display line 2 for editing, placing the cursor at the end of the line

Source: IBM's APL2 Language Reference

Adám
  • 6,573
  • 20
  • 37
1

See:

APL: The Language and Its Usage; Polivka & Pakin; 1975

Blake McBride
  • 394
  • 3
  • 16
  • That may be hard to see. Your post would be significantly improved if you could quote or rephrase the relevant parts. – Adám Feb 10 '21 at 19:21