Nicholas Marriott
66d637be3d
Merge branch 'master' of github.com:tmux/tmux
2016-10-18 20:21:13 +01:00
Nicholas Marriott
ba9f47c544
Rename found_debug to enable_debug.
2016-10-18 20:19:24 +01:00
Thomas Adam
9b991a7301
Merge branch 'obsd-master'
2016-10-18 18:01:11 +01:00
Thomas Adam
0041e40ca8
Merge branch 'obsd-master'
2016-10-18 16:01:11 +01:00
nicm
a0998e42b7
Make grid_clear_cell set up the entry properly for 256 and RGB cells.
2016-10-18 14:56:17 +00:00
nicm
cf7289662f
Tweak a couple of log statements.
2016-10-18 12:51:26 +00:00
Thomas Adam
8576ecaf32
Merge branch 'obsd-master'
2016-10-18 12:01:10 +01:00
Thomas Adam
b3ab39c4d9
Merge branch 'obsd-master'
2016-10-18 10:01:11 +01:00
nicm
2e5c49a1fd
Give each item on queue a name for better logging.
2016-10-18 08:46:43 +00:00
nicm
8763bced76
Zero dirty count after flushing.
2016-10-18 08:39:18 +00:00
nicm
c2f88373e7
Store the right size in the pipe offset for pipe-pane.
2016-10-18 07:38:16 +00:00
Nicholas Marriott
7d5fd5fcd0
Preserve existing AM_CPPFLAGS and AM_LDFLAGS values.
2016-10-17 21:51:21 +01:00
Nicholas Marriott
f6c49cecc1
One extra empty line not in OpenBSD, and tweak a #define style.
2016-10-17 19:25:45 +01:00
Nicholas Marriott
7ba845297f
CFLAGS/CPPFLAGS/LDFLAGS -> AM_*, requested by Dilyan Palauzov.
2016-10-17 19:14:56 +01:00
Nicholas Marriott
733185d0a9
Can use enable_* rather than adding our own found_* variables, from Dilyan Palauzov.
2016-10-17 19:09:38 +01:00
Thomas Adam
d54e990c4f
Merge branch 'obsd-master'
2016-10-17 00:01:11 +01:00
nicm
fe106842c8
Use notifys for alerts too.
2016-10-16 22:18:04 +00:00
nicm
41e633acf5
Use the notify name string instead of going via an enum and change
...
existing hooks to use notifys instead.
2016-10-16 22:06:40 +00:00
Thomas Adam
1a6e696b08
Merge branch 'obsd-master'
2016-10-16 22:01:14 +01:00
Nicholas Marriott
d401340c51
Update TODO.
2016-10-16 20:59:43 +01:00
nicm
d15d54c2c8
Add hook_session and hook_window formats to get information on the
...
affected session or window when a hook fires. Enable session-created and
session-closed hooks now that that is available.
2016-10-16 19:55:52 +00:00
nicm
3f35b5299f
Provide a way for hooks to tag formats onto the commands they fire so
...
that the user can get at additional information - now used for the
"hook" format, more to come.
2016-10-16 19:36:37 +00:00
nicm
026ad08b56
Notifys can go via the command queue instead of using their own queue.
2016-10-16 19:15:02 +00:00
nicm
b342bd0b46
Mass rename struct cmd_q to struct cmdq_item and related.
2016-10-16 19:04:05 +00:00
Thomas Adam
c67b702588
Merge branch 'obsd-master'
2016-10-16 20:01:10 +01:00
nicm
ddc4512d2e
Rewrite command queue handling. Each client still has a command queue,
...
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command happens to be
added, they are now all dispatched from the top level server
loop. Command queues may now also include callbacks as well as commands,
and items may be inserted after the current command as well as at the end.
This all makes command queues significantly more predictable and easier
to use, and avoids the complex multiple nested command queues used by
source-file, if-shell and friends.
A mass rename of struct cmdq to a better name (cmdq_item probably) is
coming.
2016-10-16 17:55:14 +00:00
Thomas Adam
3d8efdf310
Merge branch 'obsd-master'
2016-10-16 02:01:11 +01:00
nicm
bfe14b5312
Only use pane with run-shell if -t is given.
2016-10-15 23:06:39 +00:00
Thomas Adam
a15939b502
Merge branch 'obsd-master'
2016-10-15 14:01:10 +01:00
jmc
4fbf564292
zap double .Pp;
2016-10-15 12:34:02 +00:00
Thomas Adam
59d1147469
Merge branch 'obsd-master'
2016-10-15 12:01:14 +01:00
nicm
e7990375cb
Give window_create and window_create1 better names.
2016-10-15 09:27:52 +00:00
Thomas Adam
623e54788e
Merge branch 'obsd-master'
2016-10-15 02:01:12 +01:00
nicm
3f138dc40c
Rename a function for consistency and some spacing nits.
2016-10-15 00:12:58 +00:00
nicm
63b2547a02
Fire hooks on the simple notifys (window-renamed and session-renamed),
...
the complicated ones get no hooks for now (more to come).
2016-10-15 00:09:30 +00:00
nicm
9b3ae84993
Drain notifys once at the end of the server loop instead of doing it
...
from the end of every command queue (which could be nested).
2016-10-15 00:01:01 +00:00
Thomas Adam
3d2686a236
Merge branch 'obsd-master'
2016-10-15 00:01:10 +01:00
nicm
ed971268be
Add CMD_AFTERHOOK flag to the easy commands that don't need any special handling.
2016-10-14 22:14:22 +00:00
nicm
d413a945ac
Don't make assumptions about line wrap on !xenl terminals, means that
...
using a wrong TERM without xenl is not so broken if used on a sensible
terminal.
2016-10-14 21:48:00 +00:00
Thomas Adam
9d58febc8f
Merge branch 'obsd-master'
2016-10-14 22:01:11 +01:00
Thomas Adam
33fbf82ac0
Merge branch 'obsd-master'
2016-10-14 20:01:13 +01:00
nicm
1721d1994e
source-file and some other commands can recurse back into cmdq_continue,
...
which could potentially free the currently running command, so we need
to take a reference to it in cmdq_continue_one.
Fixes problem reported by Theo Buehler.
2016-10-14 18:41:53 +00:00
nicm
0ec18e537d
Missing flags in capture-pane, and tweak choose-tree text. From Dilyan Palauzov.
2016-10-14 17:40:47 +00:00
Thomas Adam
117737c6ca
Merge branch 'obsd-master'
2016-10-14 02:01:14 +01:00
Thomas Adam
a7ce19347a
Merge branch 'obsd-master'
2016-10-14 00:01:13 +01:00
nicm
4289a1ebfa
Trying to do hooks generically is way too complicated and unreliable and
...
confusing, particularly trying to automatically figure out what target
hooks should be using. So simplify it:
- drop before hooks entirely, they don't seem to be very useful;
- commands with special requirements now fire their own after hook (for
example, if they change session or window, or if they have -t and -s
and need to choose which one the hook uses as current target);
- commands with no special requirements can have the CMD_AFTERHOOK flag
added and they will use the -t state.
At the moment new-session, new-window, split-window fire their own hook,
and display-message uses the flag. The remaining commands still need to
be looked at.
2016-10-13 22:48:51 +00:00
Nicholas Marriott
5d2288b22a
Update TODO.
2016-10-13 22:40:20 +01:00
nicm
7a1a01feef
Remove the set-remain-on-exit option, it was always a hack and can now
...
be done with hooks instead.
2016-10-13 21:37:03 +00:00
Nicholas Marriott
e6f7180af1
tmux no longer uses openat() so we can remove the compatibilty function.
2016-10-13 22:17:29 +01:00
Thomas Adam
ad5a561adb
Merge branch 'obsd-master'
2016-10-13 22:01:12 +01:00