# cmd_join_pane_exec

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L63
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/

tmux command: [`join-pane`](/en/tmux/3.7c/manual/join-pane/)

tmux command: [`move-pane`](/en/tmux/3.7c/manual/move-pane/)

```c
static enum cmd_retval cmd_join_pane_exec(struct cmd *, struct cmdq_item *)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)

## Calls

- [`args_has`](/en/tmux/3.7c/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L126)
- [`cmd_find_from_session`](/en/tmux/3.7c/reference/c-function-cmd_find_from_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L129)
- [`cmd_get_args`](/en/tmux/3.7c/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L65)
- [`cmdq_error`](/en/tmux/3.7c/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L90)
- [`cmdq_get_current`](/en/tmux/3.7c/reference/c-function-cmdq_get_current/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L66)
- [`cmdq_get_source`](/en/tmux/3.7c/reference/c-function-cmdq_get_source/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L68)
- [`cmdq_get_target`](/en/tmux/3.7c/reference/c-function-cmdq_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L67)
- [`colour_palette_from_option`](/en/tmux/3.7c/reference/c-function-colour_palette_from_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L119)
- [`layout_assign_pane`](/en/tmux/3.7c/reference/c-function-layout_assign_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L118)
- [`layout_close_pane`](/en/tmux/3.7c/reference/c-function-layout_close_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L101)
- [`layout_get_tiled_cell`](/en/tmux/3.7c/reference/c-function-layout_get_tiled_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L94)
- [`notify_window`](/en/tmux/3.7c/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L137)
- [`options_set_parent`](/en/tmux/3.7c/reference/c-function-options_set_parent/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L109)
- [`recalculate_sizes`](/en/tmux/3.7c/reference/c-function-recalculate_sizes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L121)
- [`server_client_remove_pane`](/en/tmux/3.7c/reference/c-function-server_client_remove_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L103)
- [`server_kill_window`](/en/tmux/3.7c/reference/c-function-server_kill_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L135)
- [`server_redraw_session`](/en/tmux/3.7c/reference/c-function-server_redraw_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L130)
- [`server_redraw_window`](/en/tmux/3.7c/reference/c-function-server_redraw_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L123)
- [`server_status_session`](/en/tmux/3.7c/reference/c-function-server_status_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L132)
- [`server_unzoom_window`](/en/tmux/3.7c/reference/c-function-server_unzoom_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L82)
- [`session_select`](/en/tmux/3.7c/reference/c-function-session_select/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L128)
- [`window_count_panes`](/en/tmux/3.7c/reference/c-function-window_count_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L134)
- [`window_lost_pane`](/en/tmux/3.7c/reference/c-function-window_lost_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L104)
- [`window_set_active_pane`](/en/tmux/3.7c/reference/c-function-window_set_active_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L127)

## Referenced by

- [`cmd_join_pane_entry`](/en/tmux/3.7c/reference/c-variable-cmd_join_pane_entry/) (attribute)
- [`cmd_move_pane_entry`](/en/tmux/3.7c/reference/c-variable-cmd_move_pane_entry/) (attribute)

## Referenced declarations

- [`cmd`](/en/tmux/3.7c/reference/c-struct-cmd/) (struct)
- [`CMD_RETURN_ERROR`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_error/) (constant)
- [`CMD_RETURN_NORMAL`](/en/tmux/3.7c/reference/c-enum-cmd_retval-cmd_return_normal/) (constant)
- [`cmd_retval`](/en/tmux/3.7c/reference/c-enum-cmd_retval/) (enum)
- [`cmdq_item`](/en/tmux/3.7c/reference/c-struct-cmdq_item/) (struct)
- [`cmd_find_state.current`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-current/) (attribute)
- [`layout_cell.entry`](/en/tmux/3.7c/reference/c-struct-layout_cell-entry/) (attribute)
- [`layout_cell.flags`](/en/tmux/3.7c/reference/c-struct-layout_cell-flags/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`winlink.idx`](/en/tmux/3.7c/reference/c-struct-winlink-idx/) (attribute)
- [`window_pane.options`](/en/tmux/3.7c/reference/c-struct-window_pane-options/) (attribute)
- [`window.options`](/en/tmux/3.7c/reference/c-struct-window-options/) (attribute)
- [`window_pane.palette`](/en/tmux/3.7c/reference/c-struct-window_pane-palette/) (attribute)
- [`PANE_STYLECHANGED`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_stylechanged/) (constant)
- [`PANE_THEMECHANGED`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_themechanged/) (constant)
- [`window.panes`](/en/tmux/3.7c/reference/c-struct-window-panes/) (attribute)
- [`cmd_find_state.s`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-s/) (attribute)
- [`SPAWN_BEFORE`](/en/tmux/3.7c/reference/c-define-tmux-h-spawn_before/) (constant)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`winlink.window`](/en/tmux/3.7c/reference/c-struct-winlink-window/) (attribute)
- [`cmd_find_state.wl`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-wl/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-wp/) (attribute)
- [`window.z_index`](/en/tmux/3.7c/reference/c-struct-window-z_index/) (attribute)
