ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] non-interactive groups command


From: Rupert Levene
Subject: [RP] non-interactive groups command
Date: Sun Jun 22 02:43:14 2003
User-agent: Mutt/1.5.3i

This makes groups behave more like windows, with a non-interactive
variety. This could be useful to avoid defining duplicate groups and
to implement next/previous workspace commands in shell scripts.

Index: actions.c
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/src/actions.c,v
retrieving revision 1.172
diff -u -r1.172 actions.c
--- actions.c   2 Jun 2003 22:25:53 -0000       1.172
+++ actions.c   22 Jun 2003 09:31:53 -0000
@@ -3422,10 +3568,19 @@
        mark_end = strlen (sbuf_get (buffer));
     }
 
-  marked_message (sbuf_get (buffer), mark_start, mark_end);
-  sbuf_free (buffer);
+  if (interactive)
+    {
+      marked_message (sbuf_get (buffer), mark_start, mark_end);
+      sbuf_free (buffer);
+      return NULL;
+    }
+  else
+    {
+      char* tmp = sbuf_get(buffer);
+      free(buffer);
+      return tmp;
+    }
 
-  return NULL;
 }
 
 /* Move a window to a different group. */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]