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


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.


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