Go to the first, previous, next, last section, table of contents.


Character Movement

Function: left-char &optional count pos
Alter and return pos (or a copy of the cursor pos) so that it points count characters (default is one) to the left of its current position. If the resulting column number is less than zero nil is returned, else the position.

(goto-char (pos 20 0))
    => #<pos 20 0>
(left-char)
    => #<pos 19 0>

(setq x (pos 4 1))
    => #<pos 4 1>
(left-char 3 x)
    => #<pos 1 1>
x
    => #<pos 1 1>

Function: goto-left-char &optional count
Move count (or one) characters to the left.

Function: right-char &optional count pos
Alter and return pos (or a copy of the cursor pos) so that it points count (or one) characters to the right of its current position. May return a position which points to a character past the end of the line.

Function: goto-right-char &optional count
Move count (or one) characters to the right.

The following functions results depends on the contents of the buffer they are operating on; they move a certain number of characters, and hence will cross line boundaries.

Function: next-char &optional count pos buffer
Alter and return pos (or a copy of the cursor pos) to point to the character count characters in front of its current position.

If count is negative this function will work backwards through the buffer.

Function: goto-next-char &optional count
Move count characters forwards.

Function: prev-char &optional count pos buffer
Similar to the next-char function but will work backwards when count is positive and forwards when it is negative.

Function: goto-prev-char count
Move count characters backwards.


Go to the first, previous, next, last section, table of contents.