Cobra Interactive Query Language reset

NAME

reset — clear all marks and user-defined ranges

SYNTAX

	r[eset] [all]

DESCRIPTION

This command removes most user-defined marks and ranges. It recognizes no arguments. By default, user-defined bounds that were set for tokens named goto, if, else, switch, case, and default, and break are not cleared. These bounds can be defined with the setlinks command, or by running the play/setlinks script as places to jump to, to reconstruct control flow in C or C-like code. To clear also these fields the argument 'all' can be used.

EXAMPLES

	: m /.		# mark all tokens
	84759 matches
	: = "number:"	# print the nr of matches
	number: 84759
	: r		# reset
	: =
	0 matches
	: u		# undo
	: =
	84759 matches
	: r all		# reset all fields, including .bound

SEE ALSO

mark, undo, print, setlinks

Return to index
Manual
Tutorial
(Last Updated: 3 May 2019)