diff options
author | sabetts <sabetts> | 2004-12-13 03:08:46 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2004-12-13 03:08:46 +0000 |
commit | 667868a2ae38efe886fbc6c51290bd6ab6ebc0af (patch) | |
tree | 9fdfd4257ab8ea2f9c4e948275945489556237fa | |
parent | eac6f3d217e4490f9ec1b6610d6d7aed2200ef3c (diff) | |
download | ratpoison-667868a2ae38efe886fbc6c51290bd6ab6ebc0af.zip |
backout appendsel
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/actions.c | 50 |
2 files changed, 25 insertions, 30 deletions
@@ -1,8 +1,3 @@ -2004-12-12 Shawn Betts <katia_dilkina@verizon.net> - - * src/actions.c (cmd_appendsel): new function - (user_commands): new command - 2004-12-12 Shawn Betts <sabetts@vcn.bc.ca> * src/sbuf.c (sbuf_concat): call sbuf_nconcat. move bulk of body diff --git a/src/actions.c b/src/actions.c index e9b6704..c0db4e5 100644 --- a/src/actions.c +++ b/src/actions.c @@ -134,7 +134,7 @@ static user_command user_commands[] = {"undo", cmd_undo, arg_STRING}, {"putsel", cmd_putsel, arg_STRING}, {"getsel", cmd_getsel, arg_STRING}, - {"appendsel", cmd_appendsel, arg_STRING}, +/* {"appendsel", cmd_appendsel, arg_STRING}, */ /*@end (tag required for genrpbindings) */ /* Commands to help debug ratpoison. */ @@ -4994,28 +4994,28 @@ cmd_getsel (int interactive, char *data) return get_selection(); } -char * -cmd_appendsel (int interactive, char *data) -{ - char *sel; +/* char * */ +/* cmd_appendsel (int interactive, char *data) */ +/* { */ +/* char *sel; */ - if (data == NULL) - { - message ("appendsel: One argument required"); - return NULL; - } - - sel = get_selection(); - if (sel) - { - char *new_sel; - new_sel = xsprintf ("%s%s", sel, data); - free (sel); - set_selection (new_sel); - free (new_sel); - } - else - set_selection (data); - - return NULL; -} +/* if (data == NULL) */ +/* { */ +/* message ("appendsel: One argument required"); */ +/* return NULL; */ +/* } */ + +/* sel = get_selection(); */ +/* if (sel) */ +/* { */ +/* char *new_sel; */ +/* new_sel = xsprintf ("%s%s", sel, data); */ +/* free (sel); */ +/* set_selection (new_sel); */ +/* free (new_sel); */ +/* } */ +/* else */ +/* set_selection (data); */ + +/* return NULL; */ +/* } */ |