Function: block

block is a for cl-block, defined in cl-macs.el.gz.

This macro is obsolete since 27.1; use cl-block instead.

Signature

(block NAME &rest BODY)

Documentation

Define a lexically-scoped block named NAME.

NAME may be any symbol. Code inside the BODY forms can call cl-return-from to jump prematurely out of the block. This differs from catch and throw
in two respects: First, the NAME is an unevaluated symbol rather than a
quoted symbol or other form; and second, NAME is lexically rather than
dynamically scoped: Only references to it within BODY will work. These
references may appear inside macro expansions, but not inside functions called from BODY.

Probably introduced at or before Emacs version 16.

Aliases

block (obsolete since 27.1)