# hunt-forward(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

hunt-forward - Resume previous search in forward direction hunt-backward - Resume previous search in backward direction

## SYNOPSIS

n hunt-forward (C-x h)
n hunt-backward (C-x C-h)

## DESCRIPTION

hunt-forward repeats the last search with the last search string in a forwards direction, from the current cursor position. magic(2m) and exact(2m) modes are operational.

hunt-backward repeats the last search with the last search string in a backwards direction, as per hunt-forward.

The numeric argument n is interpreted as follows:-

n > 0

The nth occurrence of the pattern is located.

n < 0

The first occurrence of the pattern is located in the next n lines.

## DIAGNOSTICS

The command returns a status of `FALSE` if no previous search string has been established, or if the pattern could not be located (or nth pattern where n occurrences are requested). If the pattern is found within the given search criteria the return status is `TRUE`.

## SEE ALSO

exact(2m), isearch-forward(2), magic(2m), narrow-search-backward(3), narrow-search-forward(3), search-backward(2), search-forward(2),
Regular Expressions

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>