ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.220 by root, Tue Jun 19 18:17:56 2012 UTC vs.
Revision 1.221 by sf-exg, Thu Jun 21 06:08:05 2012 UTC

118 118
119Dynamically enable the given hooks (named without the C<on_> prefix) for 119Dynamically enable the given hooks (named without the C<on_> prefix) for
120this extension, replacing any previous hook. This is useful when you want 120this extension, replacing any previous hook. This is useful when you want
121to overwrite time-critical hooks only temporarily. 121to overwrite time-critical hooks only temporarily.
122 122
123To install additional callbacks for the same hook, you cna use the C<on> 123To install additional callbacks for the same hook, you can use the C<on>
124method of the C<urxvt::term> class. 124method of the C<urxvt::term> class.
125 125
126=item $self->disable ($hook_name[, $hook_name..]) 126=item $self->disable ($hook_name[, $hook_name..])
127 127
128Dynamically disable the given hooks. 128Dynamically disable the given hooks.
1072watchers (timers, io watchers) are still active. 1072watchers (timers, io watchers) are still active.
1073 1073
1074=item $guard = $self->on ($hook_name => $cb[, $hook_name => $cb..]) 1074=item $guard = $self->on ($hook_name => $cb[, $hook_name => $cb..])
1075 1075
1076Similar to the extension method C<enable>, but installs additional 1076Similar to the extension method C<enable>, but installs additional
1077callbacks for the givne hook(s) (existing ones are not replaced), and 1077callbacks for the given hook(s) (existing ones are not replaced), and
1078returns a guard object. When the guard object is destroyed the callbacks 1078returns a guard object. When the guard object is destroyed the callbacks
1079are disabled again. 1079are disabled again.
1080 1080
1081Note that these callbacks receive the normal paramaters, but the first 1081Note that these callbacks receive the normal parameters, but the first
1082argument (normally the extension) is currently undefined. 1082argument (normally the extension) is currently undefined.
1083 1083
1084=cut 1084=cut
1085 1085
1086sub urxvt::term::on_disable::DESTROY { 1086sub urxvt::term::on_disable::DESTROY {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines