diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-11-22 08:03:38 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2016-11-22 08:03:38 +0100 |
commit | 038588ca409cb6920ea731c779c8b69e636fe364 (patch) | |
tree | 0bbc3a473d0931a7988615f546c02ec4a0e43298 | |
parent | 0b80cf39b429f425a5792868d67ac78004bbbfbc (diff) | |
download | ratpoison-038588ca409cb6920ea731c779c8b69e636fe364.zip |
Kill "compat" and all support for "deffoo..."
It's been more than 10 years that "compat" has been introduced, people
have had enough time to change their config files and scripts.
-rw-r--r-- | doc/ratpoison.mdoc.1 | 15 | ||||
-rw-r--r-- | doc/ratpoison.texi | 23 | ||||
-rw-r--r-- | src/actions.c | 29 |
3 files changed, 0 insertions, 67 deletions
diff --git a/doc/ratpoison.mdoc.1 b/doc/ratpoison.mdoc.1 index 8ee40aa..54f95e2 100644 --- a/doc/ratpoison.mdoc.1 +++ b/doc/ratpoison.mdoc.1 @@ -207,10 +207,6 @@ Execute .Ar ratpoison\-command interactively. (i.e. ask for possible missing arguments.) -.It Ic compat -Add aliases for the new -.Ic set -commands starting with "def" to support older scripts. .It Ic cother Like .Ic other @@ -239,17 +235,6 @@ If you cannot guess a name of a key, try either and look at the error message, or try .Ic :describekey Li root and pressing the key. -.It Ic def... -When -.Ic compat -was called there are some aliases starting with "def", which alias the -new form with -.Ic set . -I.e. instead of -.Ic defresizeunit -better use the new -.Ic set Cm resizeunit -and so on... .It Ic dedicate Op Cm 0 | 1 Consider the current frame dedicated/chaste .Pq Cm 1 diff --git a/doc/ratpoison.texi b/doc/ratpoison.texi index e05f294..1c6afe6 100644 --- a/doc/ratpoison.texi +++ b/doc/ratpoison.texi @@ -331,7 +331,6 @@ When called with no arguments, the current setting is returned. @end deffn @deffn Command {set winname} @var{name} -@c @deffnx Command defwinname @var{name} There are three resources ratpoison can get a window's name from: the WMNAME hint, the res_name from the WMCLASS hint, or the res_class from the WMCLASS hint. @var{name} can be @samp{title} which is what most @@ -342,7 +341,6 @@ When called with no arguments, the current setting is returned. @end deffn @deffn Command {set wingravity} @var{g} -@c @deffnx Command defwingravity @var{g} Set the default gravity for normal windows. See the @command{gravity} command. @@ -350,13 +348,11 @@ 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}. @end deffn @deffn Command {set winfmt} @var{fmt} -@c @deffnx Command defwinfmt @var{fmt} Set the default window format for the @command{windows} command. By default it is @samp{%n%s%t}. The following is a list of valid format characters: @@ -419,7 +415,6 @@ omitted ratpoison defaults to the current window. @end deffn @deffn Command {set transgravity} @var{g} -@c @deffnx Command deftransgravity @var{g} Set the default alignment for transient windows. See the @command{gravity} command. @@ -428,7 +423,6 @@ returned. @end deffn @deffn Command {set maxsizegravity} @var{g} -@c @deffnx Command defmaxsizegravity @var{g} Set the default alignment for windows with maxsize hints. See the @command{gravity} command. @@ -437,7 +431,6 @@ returned. @end deffn @deffn Command {set border} @var{n} -@c @deffnx Command defborder @var{n} Set the border width for all windows. When called with no arguments, the current setting is @@ -746,7 +739,6 @@ The increment size used to resize the frame interactively is 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. @@ -1324,7 +1316,6 @@ returned. @end deffn @deffn Command {set inputwidth} @var{n} -@c @deffnx Command definputwidth @var{n} Set the width of the input window. When called with no arguments, the current setting is @@ -1332,7 +1323,6 @@ 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. @@ -1345,7 +1335,6 @@ characters as @command{set winfmt}. @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. @@ -1353,7 +1342,6 @@ When called with no arguments, the current setting is returned. @end deffn @deffn Command {set bgcolor} @var{color} -@c @deffnx Command defbgcolor @var{color} Set the background color for all text ratpoison displays. @var{color} is any valid X11 color. @@ -1382,7 +1370,6 @@ When called with no arguments, the current setting is returned. @end deffn @deffn Command {set barpadding} @var{x} @var{y} -@c @deffnx Command defbarpadding @var{x} @var{y} Set the horizontal and vertical padding inside the bar. When called with no arguments, the current setting is @@ -1390,7 +1377,6 @@ 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 with no arguments, the current setting is @@ -1399,7 +1385,6 @@ returned. @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. @@ -1407,7 +1392,6 @@ When called with no arguments, the current setting is returned. @deffn Command {set barinpadding} @var{n} -@c @deffnx Command defbarinpadding @var{n} Set whether the bar window appears at the edge of the screen when there is padding -- that is, within the "padding" area -- or whether it appears at the edge of the window area. "1" represents the former, "0" the latter. See the @@ -1496,20 +1480,13 @@ Change the current directory for ratpoison. Run a ratpoison command. @end deffn -@deffn Command compat -Install the now obsolete @samp{def*} commands as aliases to the -corresponding @samp{set *} command. -@end deffn - @deffn Command {set padding} @var{left} @var{top} @var{right} @var{bottom} -@c @deffnx Command defpadding @var{left} @var{top} @var{right} @var{bottom} Set the padding around the edge of the screen. When called with no arguments, the current setting is returned. @end deffn @deffn Command {set waitcursor} @var{n} -@c @deffnx Command defwaitcursor @var{n} Set whether the rat cursor should change into a square when waiting for a key. A non-zero number means change the cursor. Zero means don't change the cursor. diff --git a/src/actions.c b/src/actions.c index b6cfde1..6a856bd 100644 --- a/src/actions.c +++ b/src/actions.c @@ -402,7 +402,6 @@ init_user_commands(void) add_command ("putsel", cmd_putsel, 1, 1, 1, "Text: ", arg_RAW); add_command ("getsel", cmd_getsel, 0, 0, 0); - add_command ("compat", cmd_compat, 0, 0, 0); /*@end (tag required for genrpbindings) */ /* Commands to help debug ratpoison. */ @@ -6073,31 +6072,3 @@ cmd_getsel (int interactive UNUSED, struct cmdarg **args UNUSED) else return cmdret_new (RET_FAILURE, "getsel: no X11 selection"); } - -/* This is a command that restores old commands that have been - recently deprecated. */ -cmdret * -cmd_compat (int interactive UNUSED, struct cmdarg **args UNUSED) -{ - add_alias ("defresizeunit", "set resizeunit"); - add_alias ("defwingravity", "set wingravity"); - add_alias ("deftransgravity", "set transgravity"); - add_alias ("defmaxsizegravity", "set maxsizegravity"); - add_alias ("defbargravity", "set bargravity"); - add_alias ("deffont", "set font"); - add_alias ("defpadding", "set padding"); - add_alias ("defborder", "set border"); - add_alias ("defbarborder", "set barborder"); - add_alias ("definputwidth", "set inputwidth"); - add_alias ("defwaitcursor", "set waitcursor"); - add_alias ("defwinfmt", "set winfmt"); - add_alias ("defwinname", "set winname"); - add_alias ("deffgcolor", "set fgcolor"); - add_alias ("defbgcolor", "set bgcolor"); - add_alias ("defbarpadding", "set barpadding"); - add_alias ("defwinliststyle", "set winliststyle"); - add_alias ("defframesels", "set framesels"); - add_alias ("defmaxundos", "set maxundos"); - - return cmdret_new (RET_SUCCESS, NULL); -} |