Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [20636d] Maximize Restore History

Add a command queue to standardize and simplify commands that call other

commands and allow a command to block execution of subsequent
commands. This allows run-shell and if-shell to be synchronous which has
been much requested.

Each client has a default command queue and commands are consumed one at
a time from it. A command may suspend execution from the queue by
returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() -
for example run-shell does this from the callback that is fired after
the job is freed.

When the command queue becomes empty, command clients are automatically
exited (unless attaching). A callback is also fired - this is used for
nested commands in, for example, if-shell which can block execution of
the client's cmdq until a new cmdq becomes empty.

Also merge all the old error/info/print functions together and lose the
old curclient/cmdclient distinction - a cmdq is bound to one client (or
none if in the configuration file), this is a command client if
c->session is NULL otherwise an attached client.

Nicholas Marriott Nicholas Marriott 2013-03-24

<< < 1 2 3 4 > >> (Page 3 of 4)
changed cmd-rotate-window.c
changed cmd-run-shell.c
changed cmd-save-buffer.c
changed cmd-select-layout.c
changed cmd-select-pane.c
changed cmd-select-window.c
changed cmd-send-keys.c
changed cmd-server-info.c
changed cmd-set-buffer.c
changed cmd-set-environment.c
changed cmd-show-environment.c
changed cmd-show-messages.c
changed cmd-show-options.c
changed cmd-source-file.c
changed cmd-split-window.c
changed cmd-start-server.c
changed cmd-string.c
changed cmd-suspend-client.c
changed cmd-swap-pane.c
changed cmd-swap-window.c
changed cmd-switch-client.c
changed cmd-unbind-key.c
changed cmd-unlink-window.c
changed cmd.c
changed control.c
cmd-rotate-window.c Diff Switch to side-by-side view
Loading...
cmd-run-shell.c Diff Switch to side-by-side view
Loading...
cmd-save-buffer.c Diff Switch to side-by-side view
Loading...
cmd-select-layout.c Diff Switch to side-by-side view
Loading...
cmd-select-pane.c Diff Switch to side-by-side view
Loading...
cmd-select-window.c Diff Switch to side-by-side view
Loading...
cmd-send-keys.c Diff Switch to side-by-side view
Loading...
cmd-server-info.c Diff Switch to side-by-side view
Loading...
cmd-set-buffer.c Diff Switch to side-by-side view
Loading...
cmd-set-environment.c Diff Switch to side-by-side view
Loading...
cmd-show-environment.c Diff Switch to side-by-side view
Loading...
cmd-show-messages.c Diff Switch to side-by-side view
Loading...
cmd-show-options.c Diff Switch to side-by-side view
Loading...
cmd-source-file.c Diff Switch to side-by-side view
Loading...
cmd-split-window.c Diff Switch to side-by-side view
Loading...
cmd-start-server.c Diff Switch to side-by-side view
Loading...
cmd-string.c Diff Switch to side-by-side view
Loading...
cmd-suspend-client.c Diff Switch to side-by-side view
Loading...
cmd-swap-pane.c Diff Switch to side-by-side view
Loading...
cmd-swap-window.c Diff Switch to side-by-side view
Loading...
cmd-switch-client.c Diff Switch to side-by-side view
Loading...
cmd-unbind-key.c Diff Switch to side-by-side view
Loading...
cmd-unlink-window.c Diff Switch to side-by-side view
Loading...
cmd.c Diff Switch to side-by-side view
Loading...
control.c Diff Switch to side-by-side view
Loading...
<< < 1 2 3 4 > >> (Page 3 of 4)