All Manuals > CAPI Reference Manual > 1 CAPI Reference Entries

NextPrevUpTopContentsIndex

call-editor

Generic Function
Summary

Executes an editor command in an editor-pane.

Package

capi

Signature

call-editor editor-pane command

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 in editor-pane 's interface. See the demo interface example in the CAPI User Guide . 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.

Example
(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 the example in the directory examples/capi/editor/ .

See also

apply-in-pane-process
editor-pane
execute-with-interface


CAPI Reference Manual - 15 Dec 2011

NextPrevUpTopContentsIndex