home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
new
/
util
/
edit
/
jade
/
man
/
jade.info-2
(
.txt
)
< prev
next >
Wrap
GNU Info File
|
1994-10-16
|
50KB
|
1,039 lines
This is Info file jade.info, produced by Makeinfo-1.55 from the input
file jade.texi.
START-INFO-DIR-ENTRY
* Jade: (jade). An editor for X11 and AmigaDOS
END-INFO-DIR-ENTRY
This is Edition 1.3, last updated 7 October 1994, of `The Jade
Manual', for Jade, Version 3.2.
Jade is a text editor for X11 (on Unix) and the Amiga.
Copyright 1993, 1994 John Harper.
Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.
Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided that
the entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
File: jade.info, Node: Editing Words, Next: Editing Expressions, Prev: Editing Characters, Up: Editing Units
Editing Words
-------------
The following commands operate on words. When given a prefix argument
they operate on that number of words all in one go.
The syntax of a word depends largely on the major mode being used to
edit the buffer with, see *Note Editing Modes::.
`Meta-f'
`Meta-Right'
Move forward one word.
`Meta-b'
`Meta-Left'
Move back one word.
`Meta-d'
`Meta-DEL'
Kills characters from the cursor to the start of the next word.
*Note Killing::.
`Meta-Backspace'
Kills characters from the start of the previous word to the cursor
position.
`Meta-t'
Transpose words: the word before the cursor is dragged over the
following word. An argument means to drag the word over that
number of words.
`Meta-u'
Convert the characters from the cursor to the start of the next
word to upper-case.
`Meta-l'
Similar to `Meta-u' but converts to lower-case.
`Meta-c'
Capitalise the word beginning at the cursor position. What happens
is that the next alphabetic character is converted to upper-case
then the rest of the word is converted to lower-case. Note that an
argument to this command currently has no effect.
File: jade.info, Node: Editing Expressions, Next: Editing Lines, Prev: Editing Words, Up: Editing Units
Editing Expressions
-------------------
Expressions are used when editing programming languages; the editing
mode for a particular programming language defines the syntax of an
expression element in that language. In other editing modes an
expression is defined as a single word.
These commands use prefix arguments in the normal manner.
`Ctrl-Meta-f'
Move forward over one expression element.
`Ctrl-Meta-b'
Move backwards over one expression.
`Ctrl-Meta-k'
Kills the following expression, starting from the current cursor
position. A negative argument means kill backwards. *Note
Killing::.
`Ctrl-Meta-t'
Transpose the previous expression with the following one. An
argument means to drag the previous one over that many expressions.
File: jade.info, Node: Editing Lines, Prev: Editing Expressions, Up: Editing Units
Editing Lines
-------------
These commands all operate on one or more lines of text. Most use a
prefix argument (if entered) to define how many lines to move or operate
`Ctrl-n'
`Down'
Move down one line.
`Ctrl-p'
Move to the previous line.
`Ctrl-a'
`Shift-Left'
Move to the beginning of the current line.
`Ctrl-e'
`Shift-Right'
Move to the end of the current line.
`Meta-j'
Prompts for the number of a line to jump to. If a prefix argument
was entered that defines the line number.
`Ctrl-DEL'
Kill the current line. *Note Killing::.
`Shift-DEL'
Kill from the cursor to the end of the current line.
`Shift-Backspace'
Kill from the cursor to the beginning of the line.
`Ctrl-k'
If the cursor is not at the end of the line kill the text from the
cursor to the end of the line, else kill from the end of the line
to the start of the next line.
If this command is given an argument it kills that number of
*whole* lines, either backwards or forwards from the cursor,
depending on whether or not the argument is negative or positive.
An argument of zero kills from the cursor to the start of the
current line.
`Ctrl-o'
Create a blank new line, leaving the cursor in its original
position. A prefix argument says to create that many blank lines.
File: jade.info, Node: Cutting And Pasting, Next: Using Blocks, Prev: Editing Units, Up: Using Jade
Cutting And Pasting
===================
One of the main functions of any editor is to allow you to move
around chunks of text, Jade makes this very easy.
Generally, to paste down some text you have to get the text to be
inserted into the window-system's clipboard (1). If the text you wish
to paste is in one of the editor's buffers Jade has a number of
commands for doing this, this is sometimes referred to as "killing" the
text. For details of how to kill a piece of text see *Note Killing::.
If the text to be pasted is in the same buffer as the position to
which you want to copy it there is an easier way than putting it into
the clipboard. For more details see *Note Commands on Blocks:: and the
command `Ctrl-i'.
Once the text to be pasted is in the clipboard there are two
commands which can be used to insert it into the buffer before the
cursor,
`Ctrl-y'
Inserts text into the buffer before the cursor. The text inserted
is either the current contents of the kill buffer, or the block
marked in this window, if one exists.
`Ctrl-Y'
This is a variant of `Ctrl-y', it treats the string that it is
pasting as a "rectangle" of text. That is, each successive line in
the string (each separated by a newline character) is inserted on
successive lines in the buffer but at the same column position.
For more details see *Note Rectangular Blocks:: and the function
`insert-rect'.
---------- Footnotes ----------
(1) When using an Amiga, unit zero of the `clipboard.device' is
used. For X11, the first cut-buffer.
File: jade.info, Node: Using Blocks, Next: Killing, Prev: Cutting And Pasting, Up: Using Jade
Using Blocks
============
A "block" is a section of a buffer, you mark it by specifying its
edges (i.e. the first and last characters). This part of the buffer can
then have various things done to it, for example insert it somewhere
else.
Each window can only have a single block marked at any one time, it
will be displayed in the reverse of normal text (i.e. white on black,
not black on white).
* Menu:
* Marking Blocks:: Commands to define the current block
* Commands on Blocks:: How to work with blocks
* Rectangular Blocks:: Columns of text as blocks
File: jade.info, Node: Marking Blocks, Next: Commands on Blocks, Up: Using Blocks
Marking Blocks
--------------
To mark a block you must specify its outermost points, note that the
text marked by the block ends one character before the marked position
(this is so that it easy to mark whole lines).
Rectangular blocks are a bit different for more information, see
*Note Rectangular Blocks::.
Note also that block marks shrink and grow as text is deleted and
inserted inside them, similar to what normal marks do.
These are the commands used to mark a block,
`Ctrl-m'
`Ctrl-SPC'
If a block is currently marked in this window it will unmark it.
Otherwise it will either mark the beginning or end of the block
depending on whether or not a block has previously been partially
marked.
The normal method for marking a few characters is to first make
sure that no block is currently marked (the status line displays
the status of the block marks, a `b' means that one end of a block
has been marked and a `B' means that both ends of a block are
marked in which case it will be highlighted somewhere in the
buffer) then press `Ctrl-m' at one end, move the cursor to the
opposite end and press `Ctrl-m' again.
`Ctrl-x h'
Mark the whole of the buffer.
`Meta-@'
Mark the current word.
`Meta-h'
Mark the current paragraph.
Another method fo