summaryrefslogtreecommitdiff
path: root/doc/ratpoison.texi
diff options
context:
space:
mode:
authorsabetts <sabetts>2004-12-13 01:04:15 +0000
committersabetts <sabetts>2004-12-13 01:04:15 +0000
commitf90ee8e9dfcb3ab286c5202e96a0715429f0e4e7 (patch)
tree43fd7965bcae0bf813f9609c4bf815cb6df09aff /doc/ratpoison.texi
parentf6f24bd90f416993e1621266081bfc9419925495 (diff)
downloadratpoison-f90ee8e9dfcb3ab286c5202e96a0715429f0e4e7.zip
* src/sbuf.c (sbuf_concat): call sbuf_nconcat. move bulk of body
to sbuf_nconcat. (sbuf_nconcat): new function * src/globals.c (init_globals): new function * src/main.c (main): call init_globals. * src/globals.c: include unistd.h. (x_export_selection): new function (set_nselection): likewise (set_selection): call x_export_selection (get_cut_buffer): new function (get_primary_selection): likewise (get_selection): likewise * src/editor.c (editor_kill_word): add the deleted text to the X11 selection (editor_backward_kill_word): likewise (editor_kill_line): likewise (backward_kill_line): new fuction (editor_backward_kill_line): add the deleted text to the X11 selection. call backward_kill_line. (paste_cut_buffer): remove function (paste_primary_selection): likewise (editor_paste_selection): call get_selection to get the X11 selection. (editor_complete): call backward_kill_line instead of editor_backward_kill_line. * src/ratpoison.h: Include string.h. Include X11/XAtom.h. * src/globals.c (selection): new global (set_selection): new function * src/events.c: include X11/Xmd.h (selection_request): new function (selection_clear): new function (delegate_event): call selection_request and selection_clear for SelectionRequest and SelectionClear events. * src/actions.c (user_commands): remove duplicate focusprev entry. Add putsel. Add getsel. (cmd_putsel): new function (cmd_getsel): new function * contrib/genrpbindings: add a missing paren to the elisp bindings.
Diffstat (limited to 'doc/ratpoison.texi')
-rw-r--r--doc/ratpoison.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/ratpoison.texi b/doc/ratpoison.texi
index 0266045..744ed90 100644
--- a/doc/ratpoison.texi
+++ b/doc/ratpoison.texi
@@ -1289,6 +1289,10 @@ Execute a shell command. By default, @kbd{C-t !} does this.
Display the value of the environment variable, @var{env}.
@end deffn
+@deffn Command getsel
+Return the contents of the X11 selection.
+@end deffn
+
@deffn Command help
Display a help screen that lists all bound keystrokes.
@end deffn
@@ -1301,6 +1305,10 @@ Display ratpoison's license. By default, this is bound to @kbd{C-t V}.
Send a @kbd{C-t} to the current window.
@end deffn
+@deffn Command putsel @var{text}
+Make text the X11 selection.
+@end deffn
+
@deffn Command quit
Quit ratpoison.
@end deffn