# expand-look-back(3)

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

## NAME

expand-look-back - Complete a word by looking back for a similar word

## SYNOPSIS

expand-look-back

## DESCRIPTION

expand-look-back attempts to complete the word at the current position by looking backward for another word which starts the same. If such a word is found within 100 lines of the current cursor position the current partial word is replaced with the word found.

expand-look-back is automatically invoked from the expand-abbrev-handle(3) macro in response to an expansion command, it is only invoked if enabled in the user-setup(3) => General => Abbrev Expansion => Lookbk setting is enabled.

## NOTES

expand-look-back is a macro implemented in `abbrev.emf`.

The user-setup configuration simply sets the macro variable `.expand-look-back.on` to TRUE, i.e.:

    set-variable .expand-look-back.on 1

It may be subsequently disabled by setting the variable back to 0.

## SEE ALSO

expand-abbrev-handle(3), user-setup(3).

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

</HMTL>