# libtmux:join-pane

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/placement.lisp#L113
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-join-pane/

```
(join-pane client source destination &key (direction :vertical) size percent before full-size (detached t) (observe t) cancel-token timeout output-limit)
```

Join SOURCE pane beside DESTINATION using tmux's [join-pane](/en/tmux/latest/manual/join-pane/) command.
Arguments, outcomes, emptied-window effects and observation semantics match
MOVE-PANE. Both targets are captured physical panes. Signals STALE-TARGET or an
operational condition; a failed follow-up is distinct from mutation failure.

## Parameters

- `client`
- `source`
- `destination`
- `direction?`
- `size?`
- `percent?`
- `before?`
- `full-size?`
- `detached?`
- `observe?`
- `cancel-token?`
- `timeout?`
- `output-limit?`

## tmux command

The tmux commands behind `join-pane`.

- [`join-pane`](/en/tmux/latest/manual/join-pane/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_join_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_join_pane_entry/) (attribute)
- [`cmd_join_pane_exec`](/en/tmux/latest/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function)

## Guides

Pages that discuss `join-pane`.

- [Explicit operations](/en/lisp/latest/guides/operations/)
