# cmdq_insert_after

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L325
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmdq_insert_after/

```c
struct cmdq_item * cmdq_insert_after(struct cmdq_item *after, struct cmdq_item *item)
```

## Parameters

- `after` (`struct cmdq_item *`)
- `item` (`struct cmdq_item *`)

## Called by

- [`cmd_command_prompt_callback`](/en/tmux/latest/reference/c-function-cmd-command-prompt-c-cmd_command_prompt_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-command-prompt.c#L225)
- [`cmd_confirm_before_callback`](/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L144)
- [`cmd_display_panes_key`](/en/tmux/latest/reference/c-function-cmd-display-panes-c-cmd_display_panes_key/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-display-panes.c#L291)
- [`cmd_if_shell_callback`](/en/tmux/latest/reference/c-function-cmd-if-shell-c-cmd_if_shell_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-if-shell.c#L169)
- [`cmd_if_shell_exec`](/en/tmux/latest/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-if-shell.c#L100)
- [`cmd_run_shell_timer`](/en/tmux/latest/reference/c-function-cmd-run-shell-c-cmd_run_shell_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-run-shell.c#L237)
- [`cmd_source_file_complete`](/en/tmux/latest/reference/c-function-cmd-source-file-c-cmd_source_file_complete/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-source-file.c#L92)
- [`cmdq_insert_hook`](/en/tmux/latest/reference/c-function-cmdq_insert_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L434)
- [`key_bindings_dispatch`](/en/tmux/latest/reference/c-function-key_bindings_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/key-bindings.c#L713)
- [`load_cfg`](/en/tmux/latest/reference/c-function-load_cfg/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L143)
- [`load_cfg_from_buffer`](/en/tmux/latest/reference/c-function-load_cfg_from_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cfg.c#L195)
- [`notify_insert_one_hook`](/en/tmux/latest/reference/c-function-notify-c-notify_insert_one_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L53)
- [`server_client_default_command`](/en/tmux/latest/reference/c-function-server-client-c-server_client_default_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L2340)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L342)

## Other function references

- [`cmdq_name`](/en/tmux/latest/reference/c-function-cmd-queue-c-cmdq_name/) (function)

## Referenced declarations

- [`cmdq_item.client`](/en/tmux/latest/reference/c-struct-cmdq_item-client/) (attribute)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`cmdq_item.entry`](/en/tmux/latest/reference/c-struct-cmdq_item-entry/) (attribute)
- [`cmdq_list.list`](/en/tmux/latest/reference/c-struct-cmdq_list-list/) (attribute)
- [`cmdq_item.name`](/en/tmux/latest/reference/c-struct-cmdq_item-name/) (attribute)
- [`cmdq_item.next`](/en/tmux/latest/reference/c-struct-cmdq_item-next/) (attribute)
- [`cmdq_item.queue`](/en/tmux/latest/reference/c-struct-cmdq_item-queue/) (attribute)
- [`client.references`](/en/tmux/latest/reference/c-struct-client-references/) (attribute)
