Applies a function in the process associated with a pane.
capi
apply-in-pane-process pane function &rest args => nil
| pane⇩ | |
| function⇩ |
A function designator. |
| args⇩ |
Lisp objects. |
The function apply-in-pane-process applies function to args in the process that is associated with pane. This is required when function modifies pane or changes how it is displayed. If pane has not been displayed yet or apply-in-pane-process is called in the process associated with pane, then function is called immediately.
apply-in-pane-process is a useful utility in other circumstances.apply-in-pane-process calls function on the current process if the pane's interface does not have a process.apply-in-pane-process applies function directly.Editor commands must be called in the correct process:
(setq editor
(capi:contain
(make-instance 'capi:editor-pane
:text "Once upon a time...")))
(capi:apply-in-pane-process
editor 'capi:call-editor editor "End Of Buffer")
(capi:apply-in-pane-process
editor 'capi:call-editor editor "Beginning Of Buffer")
apply-in-pane-process-if-alive
execute-with-interface
4.1 The correct thread for CAPI operations
7 Programming with CAPI Windows
CAPI User Guide and Reference Manual (Unix version) - 18 Feb 2025 15:34:22