Function Entry: CLAL-CLIPBOARD-PASTE-SEXP

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: CLAL-CLIPBOARD-PASTE-SEXP

Name

clal-clipboard-paste-sexp

Class

clautolisp Extension Function

Syntax

(clal-clipboard-paste-sexp)

Arguments and Values

No arguments.

Description

Return the clipboard contents parsed back into an AutoLISP object (sedit spec §5.4). The text is only READ, never evaluated — a foreign #.() read-macro cannot run — for security. Prefers the system clipboard when available, else falls back to the in-process *clipboard*.

Return Values

The parsed AutoLISP object, or nil when both the system clipboard and the in-process *clipboard* are empty.

Side Effects

None.

Affected By

  • The system clipboard contents and provider availability; the in-process clautolisp.sedit:*clipboard*.

Exceptional Situations

Parse errors on malformed clipboard source text propagate.

Examples

(clal-clipboard-copy-sexp '(1 2 3))
(clal-clipboard-paste-sexp)
=> (1 2 3)

Availability

  • clautolisp: documented (this entry); implemented since clautolisp 1.4.x.
  • AutoCAD: NOT present.
  • BricsCAD: NOT present.

Source Notes

  • clautolisp-only extension; the no-evaluate paste rule and the provider layer are specified in clautolisp/documentation/clipboard-interface.org (§Public API).