home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
new
/
util
/
edit
/
jade
/
man
/
jade.info-9
(
.txt
)
< prev
next >
Wrap
GNU Info File
|
1994-10-16
|
50KB
|
961 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: Indentation Functions, Next: Translation Functions, Prev: Transpose Functions, Up: Text
Indentation Functions
---------------------
- Function: indent-pos &optional POS BUFFER
This function returns the *glyph* position (*note Glyph
Positions::.) of the first character in the line pointed to by POS
(or the cursor) which is not a TAB or SPC character.
- Function: set-indent-pos INDENT-POS &optional BUFFER ONLY-SPACES
Sets the indentation of the line pointed to by POS to the column
pointed to by POS by putting the optimal sequence of TAB and SPC
characters at the start of the line.
If the ONLY-SPACES argument is non-`nil' no TAB characters will be
used.
- Command: indent-to COLUMN &optional ONLY-SPACES
This function inserts enough TAB and SPC characters to move the
cursor to glyph column COLUMN.
If the ONLY-SPACES argument is non-`nil' no TAB characters are
used.
Note that COLUMN counts from zero.
When called interactively the COLUMN argument is either the
numeric value of the prefix argument or, if no prefix argument has
been entered, the result of prompting for a number.
- Command: tab-with-spaces
This command inserts enough spaces at the cursor position to move
the cursor to the next tab stop.
Some major modes provide their own method of indentation (for example
Lisp mode will indent Lisp programs in the proper style), see *Note
Mode-Specific Indentation::.
- Command: indent-line
If the current buffer has a method for indentation installed, use
it to indent the current line to its correct depth.
- Command: newline-and-indent
Insert a newline character, then indent the new line; if no
function for indenting lines has been installed in this buffer a
single TAB character is inserted.
- Command: indent-area START-POS END-POS
Uses the buffer's indentation method to indent all lines in the
specified region to their correct depth.
When called interactively the currently-marked block is used to
get the values of the two arguments, the block is then unmarked.
File: jade.info, Node: Translation Functions, Next: Search and Match Functions, Prev: Indentation Functions, Up: Text
Translation Functions
---------------------
- Function: translate-area START-POS END-POS TRANSLATION-TABLE
&optional BUFFER
This function applies the mapping TRANSLATION-TABLE to each
character in the region starting at the position START-POS up to,
but not including, END-POS.
TRANSLATION-TABLE is a string, each character represents the
mapping for an ASCII character of that character's position in the
string. If the string is less than 256 characters in length any
undefined characters will remain unchanged (i.e. a
TRANSLATION-TABLE of `' would leave the region unaltered).
- Function: translate-string STRING TRANSLATION-TABLE
This function uses a similar method to that used in the
`translate-area' function. Instead of applying the mapping to a
region of a buffer it applies it to the string STRING. STRING is
returned (after being modified).
Note that the STRING really is modified, no copy is made!
(translate-string "abc" upcase-table)
=> "ABC"
- Variable: upcase-table
This is a 256-character long string which may be used as a
translation table to convert from lower-case to upper-case with
the functions `translate-string' and `translate-area'.
- Variable: downcase-table
Similar to `upcase-table' except that it is used to convert from
upper-case to lower-case.
The following functions use the translation functions and the two
translation tables described above.
- Command: upcase-area START-POS END-POS &optional BUFFER
Makes all alphabetic characters in the specified region of text
upper-case.
When called interactively uses the block marks for its arguments;
note that this won't work properly with rectangular blocks.
- Command: downcase-area START-POS END-POS &optional BUFFER
Similar to `upcase-area' but makes all alphabetic characters
lower-case.
- Command: upcase-word COUNT
For the next COUNT words starting at the cursor position, make
their alphabetic characters upper-case.
- Command: downcase-word COUNT
Does the opposite of `upcase-word', makes words lower-case!
- Command: capitalize-word
The first character of this word (normally the one under the
cursor) is made upper-case, the rest lower.
File: jade.info, Node: Search and Match Functions, Next: Rectangular Editing, Prev: Translation Functions, Up: Text
Searching and Matching Functions
--------------------------------
The most powerful of the searching and matching functions are those
using regular expressions, for details of the regexp syntax used by
Jade see *Note Regular Expressions::.
Note that the regexp matcher *does not work across lines*, at the
moment no regexp may span more than one line. Also the regexp routines
choke on NUL bytes; hopefully I'll correct these problems soon...
* Menu:
* Searching Buffers:: Scanning buffers for something
* String Matching:: Matching regexps to text
* Replacing Strings:: Replacing a found string or regexp with
something else
* Regexp Functions:: General regexp utility functions
File: jade.info, Node: Searching Buffers, Next: String Matching, Up: Search and Match Functions
Searching Buffers
.................
- Function: find-next-regexp REGEXP &optional POS BUFFER IGNORE-CASE
This function returns the position of the next substring in the
buffer matching the regular expression string REGEXP. It starts
searching at POS, or the cursor position if POS is undefined.
If no match of the regexp occurs before the end of the buffer `nil'
is returned.
If the IGNORE-CASE argument is non-`nil' then the case of matched
strings is ignored (note that character ranges are still
case-significant).
- Function: find-prev-regexp REGEXP &optional POS BUFFER IGNORE-CASE
Similar to `find-next-regexp' except this searches in the opposite
direction, from POS (or the cursor) to the *start* of the buffer.
- Function: find-next-string STRING &optional POS BUFFER
Scans forwards from POS (or the cursor), in BUFFER (or the current
buffer), looking for a match with the string STRING. Returns the
position of the next match or `nil'.
Note that matches can't span more than one line.
- Function: find-prev-string STRING &optional POS BUFFER
A backwards-searching version of `find-next-string'.
- Function: find-next-char CHARACTER &optional POS BUFFER
Search forwards for an occurrence of the character CHARACTER and
returns its position, or `nil' if no occurrence exists.
- Function: find-prev-char CHARACTER &optional POS BUFFER
This function searches backwards for an occurrence of the character
CHARACTER.
File: jade.info, Node: String Matching, Next: Replacing Strings, Prev: Searching Buffers, Up: Search and Match Functions
String Matching
...............
- Function: looking-at REGEXP &optional POS BUFFER IGNORE-CASE
Returns `t' if the regular expression REGEXP matches the text at
position POS