Next: , Up: Miscellaneous   [Contents][Index]


12.1 Groups and blocks: delimiter highlighting and moving over

Delimiters for groups (<< and >>) and blocks (begin and end) are treated as brackets. Either highlighting of matching group and block delimiters (consistent with the paren library (see Automatic Display Of Matching Parentheses in The Emacs Editor)) or (group only) blink matching is toggled by the command reduce-show-delim-mode. Highlighting is turned on automatically when REDUCE mode is selected if reduce-show-delim-mode is non-nil, which it is by default if the paren library is in use. See Automatic Display Of Matching Parentheses in The Emacs Editor, all of which applies to this extended bracket matching facility.

Beware: Currently highlighting of matching group and block delimiters works only when point is at the end of the delimiter. This may be changed in future.

M-x reduce-show-delim-mode

Toggle REDUCE Show Delim mode. With a prefix argument, turn REDUCE Show Delim mode on if and only if the argument is positive. When REDUCE Show Delim mode is enabled, any matching delimiter is highlighted after show-paren-delay seconds of Emacs idle time. See Customization of the REDUCE IDE.

Groups and blocks are regarded as “symbolic expressions” (sexp’s) by the commands reduce-backward-sexp and reduce-forward-sexp.

C-M-f
M-x reduce-forward-sexp

Move forward across one balanced expression. With an argument, do it that many times.

C-M-b
M-x reduce-backward-sexp

Move backward across one balanced expression. With an argument, do it that many times.