Next: Navigation, Previous: Editing, Up: Editing
Sepia implements partial-word completion that communicates with the inferior Perl process. For example, `%S:X:v_u' completes to `%Sepia::Xref::var_use' when Sepia is loaded. This completion only operates on functions and global variables known to the Perl interpreter, so it works best when code and interpreter are in sync.
More precisely, completion examines the text before point and tries each of the following in turn, using the first successful approach:
For each of the first three cases, completions candidates are first
generated by splitting the text on characters [:_]
and matching
the resulting word parts. For example, `X:a_b' will complete to
all symbols matching `^X[^:]*:+a[^:_]*_b' such as `Xref::a_bug'
and `X::always_bites_me'. If no matches result, the text is
treated as an acronym. For example, `dry' will complete to
`dont_repeat_yourself'.
Completion is performed by the following commands:
completion-ignore-case
.
sepia-indent-expand-abbrev
is nil
). If no abbrev is
expanded, then call sepia-complete-symbol
.