ratpoison-devel
[Top][All Lists]
Advanced

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

[RP] [Patch] Bring info file up to date.


From: Tobias C. Rittweiler
Subject: [RP] [Patch] Bring info file up to date.
Date: Sun, 23 Oct 2005 14:40:06 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.0.50 (gnu/linux)

Dear sminthophobs,

attached is a small patch which will bring the info file and code up to
date with respect to each other on the issue of invoking a ratpoison
command without any argument interactively or non-interactively. (Plus
some minor corrections.)

-t



Index: src/actions.c
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/src/actions.c,v
retrieving revision 1.259
diff -u -r1.259 actions.c
--- src/actions.c       20 Oct 2005 06:21:44 -0000      1.259
+++ src/actions.c       23 Oct 2005 12:15:37 -0000
@@ -209,7 +209,7 @@
               "Name: ", arg_STRING);
   add_command ("gnext",                cmd_gnext,      0, 0, 0);
   add_command ("gprev",                cmd_gprev,      0, 0, 0);
-  add_command ("gravity",      cmd_gravity,    1, 0, 1,
+  add_command ("gravity",      cmd_gravity,    1, 0, 0,
               "Gravity: ", arg_GRAVITY);
   add_command ("groups",       cmd_groups,     0, 0, 0);
   add_command ("gselect",      cmd_gselect,    1, 1, 1,
@@ -3379,12 +3379,9 @@
 cmdret *
 cmd_msgwait (int interactive, struct cmdarg **args)
 {
-  if (args[0] == NULL && !interactive)
+  if (args[0] == NULL)
     return cmdret_new (RET_SUCCESS, "%d", defaults.bar_timeout);
     
-  if (args[0] == NULL)
-    return cmdret_new (RET_FAILURE, "msgwait: one argument required");
-
   if (ARG(0,number) < 0)
     return cmdret_new (RET_FAILURE, "msgwait: invalid argument");
   else
Index: doc/ratpoison.texi
===================================================================
RCS file: /cvsroot/ratpoison/ratpoison/doc/ratpoison.texi,v
retrieving revision 1.105
diff -u -r1.105 ratpoison.texi
--- doc/ratpoison.texi  14 Oct 2005 21:56:38 -0000      1.105
+++ doc/ratpoison.texi  23 Oct 2005 12:15:40 -0000
@@ -194,7 +194,7 @@
 ratpoison allows you to cycle through the windows with @kbd{C-t n}
 and @kbd{C-t p}.
 
-And That concludes a brief introduction on how to use ratpoison. Notice
+And that concludes a brief introduction on how to use ratpoison. Notice
 how we didn't have to drag a single window, or click a single maximize
 button? Beautiful wasn't it? Felt fast? Cool? It's modern computing at
 its best.
@@ -219,7 +219,7 @@
 @deffn Command select @var{n}
 This jumps you to window @var{n} where @var{n} is the window number as
 shown in the Program Bar. You can do the same trick with
address@hidden@var{n}} too. To select no window, blanking the current
address@hidden @var{n}} too. To select no window, blanking the current
 frame, type @samp{select -}.
 @end deffn
 
@@ -298,8 +298,7 @@
 standard compass 1 and 2 letter abbreviations (i.e. @samp{nw},
 @samp{s}, etc).
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command delete
@@ -315,8 +314,7 @@
 window managers put in the title bar, @samp{name} which is the
 res_name, or @samp{class} which is the res_class.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set wingravity} @var{g}
@@ -324,14 +322,15 @@
 Set the default gravity for normal windows. See the
 @command{gravity} command.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set winliststyle} @var{setting}
 @c @deffnx Command defwinliststyle @var{setting}
 The window list can be displayed in a row or a column. @var{setting}
 can be @samp{row} or @samp{column}.
+
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set winfmt} @var{fmt}
@@ -361,8 +360,7 @@
 a frame.
 @end table
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command number @var{n} @var{target}
@@ -379,8 +377,7 @@
 Set the default alignment for transient windows. See the
 @command{gravity} command.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set maxsizegravity} @var{g}
@@ -388,16 +385,14 @@
 Set the default alignment for windows with maxsize hints. See the
 @command{gravity} command.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set border} @var{n}
 @c @deffnx Command defborder @var{n}
 Set the border width for all windows.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @node Window Classes, Unmanaged Windows, Manipulating Windows, Windows
@@ -507,8 +502,7 @@
 request with a message like @samp{Raise request from window 1
 (emacs)}.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @node Groups, Frames, Windows, Top
@@ -682,12 +676,14 @@
 @end table
 
 The increment size used to resize the frame interactively is
-customized with the command @command{defresizeunit}.
+customized with the command @command{set resizeunit}.
 
 @deffn Command {set resizeunit} @var{pixels}
 @c @deffnx Command defresizeunit @var{pixels}
 Set the number of pixels a frame will grow or shrink by when being
 dynamically resized.
+
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command resize @var{horizontal} @var{vertical}
@@ -776,9 +772,7 @@
 save and restore frame layouts with the press of a key.
 
 @deffn Command fdump @var{screen-num}
-Dump the current frame layout as text. When used non-interactively
-(from the command-line), ratpoison will print the frame layout. When
-used interactively, nothing happens.
+Dump the current frame layout as text.
 
 Without an argument the current screen's frames are dumped. With an
 argument the @var{screen-num}th screen is dumped. @xref{Multiple Monitors}.
@@ -804,17 +798,20 @@
 @section Frame Numbering
 
 Frames are normally numbered starting from 0. But this can be changed
-with @command{defframesels} to, for instance, include letters as well.
+with @command{set framesels} to, for instance, include letters as well.
 
 @example
-defframesels abcdefghijklmnopqrstuvwxyz
+set framesels abcdefghijklmnopqrstuvwxyz
 @end example
 
 The above code will bind letters to frames instead of numbers.
 
address@hidden Command defframesels @var{order}
address@hidden Command {set framesels} @var{order}
address@hidden @deffnx Command defframesels @var{order}
 Tell ratpoison what alphanumeric character to give each frame and in
 what order.
+
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @node Dedicated Frames,  , Frame Numbering, Frames
@@ -1214,8 +1211,7 @@
 @deffn Command msgwait @var{n}
 Set the bar's timeout in seconds.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command lastmsg
@@ -1230,19 +1226,22 @@
 @c @deffnx Command definputwidth @var{n}
 Set the width of the input window.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set font} @var{font}
 @c @deffnx Command deffont @var{font}
 Set the font. @var{font} is a font string like @samp{9x15bold}.
+
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set fgcolor} @var{color}
 @c @deffnx Command deffgcolor @var{color}
 Set the foreground color for all text ratpoison displays. @var{color}
 is any valid X11 color.
+
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set bgcolor} @var{color}
@@ -1255,22 +1254,22 @@
 @c @deffnx Command defbarpadding @var{x} @var{y}
 Set the horizontal and vertical padding inside the bar.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 @deffn Command {set bargravity} @var{g}
 @c @deffnx Command defbargravity @var{g}
 Set the default alignment for the message bar. See the @command{gravity} 
command.
 
-When called non-interactively with no arguments, the current setting is
-returned.
+When called with no arguments, the current setting is returned.
 @end deffn
 
 
 @deffn Command {set barborder} @var{n}
 @c @deffnx Command defbarborder @var{n}
 Set the border width for the bar window.
+
+When called with no arguments, the current setting is returned.
 @end deffn
 
 

reply via email to

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