Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
This page is new in 10.0.

use-mouse-clicks-to-copy-lisp-forms

Arguments: cg-congfiguration

This Common Graphics user option allows using special mouse clicks to copy or move Lisp forms in a lisp-edit-pane (such as in the IDE's code editor).

cg-configuration should be a configuration object such as returned by configuration (typically (configuration *system*)).

When enabled, a control-left-click will copy the form that's at the click position to the text cursor position, whereas a shift-control-left-click will move the form instead. If any text is currently selected, it will be replaced by the copied or moved text.

To copy or move a form, click just before the opening parenthesis of the form or just after the closing parenthesis if there is no opening parenthesis at the same character position:

;; In this case:
(foo) (bar)(baz)
;; clicking on the opening or closing parenthesis of (foo) copies (foo)
;; but you can only click on the opening parenthesis of (bar). Clicking on
;; the closing parenthesis of (bar) copies (baz) since that position is
;; also the opening parenthesis of (baz).

To copy a string, click just before the opening double-quote character. Otherwise the word that is at or near the clicked position will be copied; this may be a symbol, or simply a set of characters that could be read as a symbol.

This feature may be most useful when you are typing in new code and are about to re-type something that is visible elsewhere in the editor buffer. In this case you can simply click on the expression to copy it to the point where you are entering code, and then modify it as needed.

This option is off by default, but can be enabled with this form:

(setf (use-mouse-clicks-to-copy-lisp-forms (configuration *system*))
      t)

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page is new in the 10.0 release.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
This page is new in 10.0.