All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

call-editor Generic Function

Summary

Executes an editor command in an editor-pane.

Package

capi

Signature

call-editor editor-pane command

Arguments
editor-pane
command
A string.
Description

The generic function call-editor executes the editor command command in the current buffer in editor-pane.

It can be used directly in a callback for an interface that contains editor-pane. See 11.4 Connecting an interface to an application. In other cases, take care to modify displayed CAPI interfaces only in their own process: execute-with-interface and apply-in-pane-process are useful for this.

The before-input-callback and after-input-callback of the editor-pane are called when call-editor is called.

Examples
(setq editor (capi:contain
              (make-instance 'capi:editor-pane
                             :text "abc")))
(capi:apply-in-pane-process 
 editor 'capi:call-editor editor "End Of Buffer")

Also see this example:

(example-edit-file "capi/editor/editor-pane")
See also

apply-in-pane-process
editor-pane
execute-with-interface
10.6 In-place completion


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27