MacroPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version

without-parenthesis-matching

Arguments: (lisp-edit-pane &key no-draw) &body body

Executes body with parenthesis matching disabled in lisp-edit-pane. This means that no search will be done for matching parentheses or double-quote marks, and so parenthesis-matching marks will not be drawn or erased, and parentheses-matched will not be called.

This macro may be useful to avoid wasting time searching for matching parentheses within code that is moving the text cursor around in a lisp-edit-pane, or to avoid flashing effects as the text cursor is moved to multiple positions that may be next to parentheses or double-quote marks on literal strings. See also with-motionless-text-control (which always calls this macro internally).

If no-draw is nil (the default), then any parenthesis-matching mark that was visible in the window will be erased before the body is executed, and the usual parenthesis-matching check will be made afterward at the current text cursor position, drawing the usual mark if needed. If no-draw is true, then neither of those things is done. Drawing glitches could result if no-draw were always passed as true, but you may pass it as true if you know that the text cursor will be at the same index on entry to and exit from the body (and the characters on either side of the text cursor will be the same); this may avoid a needless redrawing of the parenthesis-matching mark.


Copyright (c) 1998-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 version