# args_make_commands_now

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L740
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-args_make_commands_now/

```c
struct cmd_list * args_make_commands_now(struct cmd *self, struct cmdq_item *item, u_int idx, int expand)
```

## Parameters

- `self` (`struct cmd *`)
- `item` (`struct cmdq_item *`)
- `idx` (`u_int`)
- `expand` (`int`)

## Called by

- [`cmd_confirm_before_exec`](/en/tmux/latest/reference/c-function-cmd-confirm-before-c-cmd_confirm_before_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-confirm-before.c#L78)
- [`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#L89)

## Calls

- [`args_make_commands`](/en/tmux/latest/reference/c-function-args_make_commands/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L748)
- [`args_make_commands_free`](/en/tmux/latest/reference/c-function-args_make_commands_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L755)
- [`args_make_commands_prepare`](/en/tmux/latest/reference/c-function-args_make_commands_prepare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L747)
- [`cmdq_error`](/en/tmux/latest/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/arguments.c#L750)

## Referenced declarations

- [`cmd`](/en/tmux/latest/reference/c-struct-cmd/) (struct)
- [`cmd_list`](/en/tmux/latest/reference/c-struct-cmd_list/) (struct)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`cmd_list.references`](/en/tmux/latest/reference/c-struct-cmd_list-references/) (attribute)
