Thomas Adam | 2 Mar 23:51 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-360-gc47536f

The branch, hooks has been updated
       via  c47536f910e5d67b38279eb6532a9a6c5ebda591 (commit)
      from  52af8e9ff6607abbf6281a836d15bf5a83fad013 (commit)

- Log -----------------------------------------------------------------
commit c47536f910e5d67b38279eb6532a9a6c5ebda591
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Move cmd_find_* protoypes to cmd.c

    These are no longer used outside of cmd.c, so make them local to it.
---
 cmd.c  |    9 +++++++++
 tmux.h |    8 --------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/cmd.c b/cmd.c
index 3ff7298..d41cf8d 100644
--- a/cmd.c
+++ b/cmd.c
 <at>  <at>  -27,6 +27,15  <at>  <at> 

 #include "tmux.h"

+struct client	*cmd_find_client(struct cmd_q *, const char *, int);
+struct session	*cmd_find_session(struct cmd_q *, const char *, int);
+struct winlink	*cmd_find_window(struct cmd_q *, const char *,
+		     struct session **);
+int		 cmd_find_index(struct cmd_q *, const char *,
(Continue reading)

Nicholas Marriott | 1 Mar 22:46 2015
Picon
Picon

[SCM] tmux branch master updated. 1.9a-278-g7536d69

The branch, master has been updated
       via  7536d690fdb8859193cdfdd2f68752711425bdd0 (commit)
      from  b8aec17af16ca557a3069a475d31a90d2925fe11 (commit)

- Log -----------------------------------------------------------------
commit 7536d690fdb8859193cdfdd2f68752711425bdd0
Author: Nicholas Marriott <nicholas.marriott <at> gmail.com>
Commit: Nicholas Marriott <nicholas.marriott <at> gmail.com>

    Explicitly look for cpp and egrep to avoid AC_EGREP_CPP messing up output.
---
 configure.ac |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index a5b212e..4a321d5 100644
--- a/configure.ac
+++ b/configure.ac
 <at>  <at>  -18,6 +18,8  <at>  <at>  AC_CANONICAL_HOST
 # Set up the compiler in two different ways and say yes we may want to install.
 AC_PROG_CC
 AM_PROG_CC_C_O
+AC_PROG_CPP
+AC_PROG_EGREP
 AC_PROG_INSTALL

 # Default tmux.conf goes in /etc not ${prefix}/etc.

-----------------------------------------------------------------------

(Continue reading)

Thomas Adam | 27 Feb 14:53 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-359-g52af8e9

The branch, hooks has been updated
       via  52af8e9ff6607abbf6281a836d15bf5a83fad013 (commit)
      from  7bf8fe4767c41aeccac94211ad13f076f6586290 (commit)

- Log -----------------------------------------------------------------
commit 52af8e9ff6607abbf6281a836d15bf5a83fad013
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Tidy up ring_bell()
---
 server-window.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/server-window.c b/server-window.c
index 72a9d37..b523299 100644
--- a/server-window.c
+++ b/server-window.c
 <at>  <at>  -226,7 +226,11  <at>  <at>  ring_bell(struct session *s)

 	for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
 		c = ARRAY_ITEM(&clients, i);
-		if (c != NULL && c->session == s && !(c->flags & CLIENT_CONTROL))
+		if (c == NULL)
+			continue;
+		if (c->flags & CLIENT_CONTROL)
+			continue;
+		if (c->session == s)
 			tty_bell(&c->tty);
 	}
(Continue reading)

Thomas Adam | 27 Feb 10:41 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-358-g7bf8fe4

The branch, hooks has been updated
       via  7bf8fe4767c41aeccac94211ad13f076f6586290 (commit)
      from  363c32c4f840ff83c51a87ef7cf26645f7e58b21 (commit)

- Log -----------------------------------------------------------------
commit 7bf8fe4767c41aeccac94211ad13f076f6586290
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Trigger bells etc., across all sessions attached or not

    Allowing sessions---including detached ones---to trigger events for bells,
    visual status, etc., becomes more important with hook support.  Remove this
    restriction.
---
 server-window.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/server-window.c b/server-window.c
index c2dc177..72a9d37 100644
--- a/server-window.c
+++ b/server-window.c
 <at>  <at>  -104,10 +104,8  <at>  <at>  server_window_check_bell(struct session *s, struct winlink *wl)

 	if (!(w->flags & WINDOW_BELL) || wl->flags & WINLINK_BELL)
 		return (0);
-	if (s->curw != wl || s->flags & SESSION_UNATTACHED)
+	if (s->curw != wl)
 		wl->flags |= WINLINK_BELL;
-	if (s->flags & SESSION_UNATTACHED)
(Continue reading)

Thomas Adam | 27 Feb 09:57 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-357-g363c32c

The branch, hooks has been updated
       via  363c32c4f840ff83c51a87ef7cf26645f7e58b21 (commit)
      from  5e5b1c8843541e6e2f6d3b21c0869dec1acde287 (commit)

- Log -----------------------------------------------------------------
commit 363c32c4f840ff83c51a87ef7cf26645f7e58b21
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Fix attach without -t crash

    The check (in this case) for attach without -t resulted in a segfault,
    because tflag was still NULL at the point of looking up the PANE_ID before
    the session.

    Instead, check for tflag not being NULL before that point, and if it's stll
    NULL when looking up the session, don't segfault looking up the other bits
    of information for the window, winlink, etc.

    Since this could technically apply to sflag as well, also do likewise.
---
 cmd.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/cmd.c b/cmd.c
index 14850dc..3ff7298 100644
--- a/cmd.c
+++ b/cmd.c
 <at>  <at>  -389,7 +389,7  <at>  <at>  cmd_set_state_tflag(struct cmd *cmd, struct cmd_q *cmdq)
 	case 0:
(Continue reading)

Thomas Adam | 25 Feb 21:57 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-356-g5e5b1c8

The branch, hooks has been updated
       via  5e5b1c8843541e6e2f6d3b21c0869dec1acde287 (commit)
      from  0c96f400787e2e1b8233a264a8527b8467ece1ca (commit)

- Log -----------------------------------------------------------------
commit 5e5b1c8843541e6e2f6d3b21c0869dec1acde287
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Provide hooks for bell/activity/silence
---
 server-window.c |   47 ++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 42 insertions(+), 5 deletions(-)

diff --git a/server-window.c b/server-window.c
index a14c315..c2dc177 100644
--- a/server-window.c
+++ b/server-window.c
 <at>  <at>  -24,10 +24,22  <at>  <at> 

 #include "tmux.h"

-int	server_window_check_bell(struct session *, struct winlink *);
-int	server_window_check_activity(struct session *, struct winlink *);
-int	server_window_check_silence(struct session *, struct winlink *);
-void	ring_bell(struct session *);
+int	 server_window_check_bell(struct session *, struct winlink *);
+int	 server_window_check_activity(struct session *, struct winlink *);
+int	 server_window_check_silence(struct session *, struct winlink *);
+void	 server_window_run_hooks(struct session *, struct winlink *);
(Continue reading)

Thomas Adam | 25 Feb 16:11 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-355-g0c96f40

The branch, hooks has been updated
       via  0c96f400787e2e1b8233a264a8527b8467ece1ca (commit)
      from  e94d513c27b8aaddf15c32ea7d786ea4cde611b5 (commit)

- Log -----------------------------------------------------------------
commit 0c96f400787e2e1b8233a264a8527b8467ece1ca
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Remove CONTROL_SHOULD_NOTIFY_CLIENT as it's global
---
 control-notify.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/control-notify.c b/control-notify.c
index 4ea1570..0b274fb 100644
--- a/control-notify.c
+++ b/control-notify.c
 <at>  <at>  -21,9 +21,6  <at>  <at> 

 #include "tmux.h"

-#define CONTROL_SHOULD_NOTIFY_CLIENT(c) \
-	((c) != NULL && ((c)->flags & CLIENT_CONTROL))
-
 void
 control_notify_input(struct client *c, struct window_pane *wp,
     struct evbuffer *input)

-----------------------------------------------------------------------
(Continue reading)

Thomas Adam | 25 Feb 00:06 2015
Picon
Picon

[SCM] tmux branch master updated. 1.9a-277-gb8aec17

The branch, master has been updated
       via  b8aec17af16ca557a3069a475d31a90d2925fe11 (commit)
       via  568f5ef3c6263004c5f6f1278346e18c66d02be3 (commit)
      from  f4196138cefe01df9aed085a7534dc30f45999e8 (commit)

- Log -----------------------------------------------------------------
commit b8aec17af16ca557a3069a475d31a90d2925fe11
Merge: f419613 568f5ef
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Merge branch 'obsd-master'

 options.c |   18 ++++++++++++------
 style.c   |   26 ++++++++++++++++----------
 2 files changed, 28 insertions(+), 16 deletions(-)

commit 568f5ef3c6263004c5f6f1278346e18c66d02be3
Author: nicm <nicm>
Commit: nicm <nicm>

    When given an invalid style, don't set the option to the default. Fix
    from J Raynor. Also make style_parse not alter the grid_cell when it
    fails.
---
 options.c |   18 ++++++++++++------
 style.c   |   26 ++++++++++++++++----------
 2 files changed, 28 insertions(+), 16 deletions(-)

diff --git a/options.c b/options.c
(Continue reading)

Thomas Adam | 25 Feb 00:04 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-354-ge94d513

The branch, hooks has been updated
       via  e94d513c27b8aaddf15c32ea7d786ea4cde611b5 (commit)
      from  801f36c25dae91f64554f5e4f1bc22bfa731b5b6 (commit)

- Log -----------------------------------------------------------------
commit e94d513c27b8aaddf15c32ea7d786ea4cde611b5
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Fix free versus running notify hooks

    Don't free the notify event and then try and run the hooks.  The two conditions
    are mutually exclusive.
---
 notify.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/notify.c b/notify.c
index 759ff34..f59960d 100644
--- a/notify.c
+++ b/notify.c
 <at>  <at>  -188,9 +188,14  <at>  <at>  notify_drain(void)

 		TAILQ_REMOVE(&notify_queue, ne, entry);

+		/*
+		 * If we are freeing ne here, then the hook has already run,
+		 * otherwise schedule the hook to run.
+		 */
 		if (ne->do_free)
(Continue reading)

Thomas Adam | 23 Feb 17:44 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-353-g801f36c

The branch, hooks has been updated
       via  801f36c25dae91f64554f5e4f1bc22bfa731b5b6 (commit)
       via  92cec78b4b2f72b6dbed075f89ebb7179fa00b63 (commit)
      from  b2bfe4a2d482ca7c6eb737493c9e0f3d02eb54b1 (commit)

- Log -----------------------------------------------------------------
commit 801f36c25dae91f64554f5e4f1bc22bfa731b5b6
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    Don't run notifys unconditionally

    Don't always run notifications; only do so on those clients accepting
    CONTROL.
---
 notify.c |   13 +++++++++++++
 tmux.h   |    3 +++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/notify.c b/notify.c
index ed6c67d..759ff34 100644
--- a/notify.c
+++ b/notify.c
 <at>  <at>  -134,10 +134,23  <at>  <at>  void
 notify_drain(void)
 {
 	struct notify_entry	*ne, *ne1;
+	struct client		*c = NULL, *cloop = NULL;
+	u_int			 i;

(Continue reading)

Thomas Adam | 23 Feb 00:31 2015
Picon
Picon

[SCM] tmux branch hooks updated. 1.9a-351-gb2bfe4a

The branch, hooks has been updated
       via  b2bfe4a2d482ca7c6eb737493c9e0f3d02eb54b1 (commit)
       via  63ec2337e2b8a81b357eb40e881c74030da62bb7 (commit)
      from  5abfa3ebc3e4e02484ea044a5cc7b2b163e39964 (commit)

- Log -----------------------------------------------------------------
commit b2bfe4a2d482ca7c6eb737493c9e0f3d02eb54b1
Author: Thomas Adam <thomas <at> xteddy.org>
Commit: Thomas Adam <thomas <at> xteddy.org>

    notify:  Support hooks

    Let notifications also run hooks.
---
 notify.c |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/notify.c b/notify.c
index 49c3f8b..6968a60 100644
--- a/notify.c
+++ b/notify.c
 <at>  <at>  -33,6 +33,22  <at>  <at>  enum notify_type {
 	NOTIFY_SESSION_CLOSED
 };

+struct notify_hooks {
+	const enum notify_type	 type;
+	const char		*hook_name;
+};
+
(Continue reading)


Gmane