Generic FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version