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.137 by root, Sat Mar 4 20:17:52 2006 UTC vs.
Revision 1.140 by root, Mon Jul 3 19:10:09 2006 UTC

255 255
256 @@RXVT_NAME@@ -pt OnTheSpot -pe xim-onthespot 256 @@RXVT_NAME@@ -pt OnTheSpot -pe xim-onthespot
257 257
258=item automove-background 258=item automove-background
259 259
260This is basically a one-line extension that dynamically changes the background pixmap offset 260This is basically a very small extension that dynamically changes the
261to the window position, in effect creating the same effect as pseudo transparency with 261background pixmap offset to the window position, in effect creating the
262a custom pixmap. No scaling is supported in this mode. Exmaple: 262same effect as pseudo transparency with a custom pixmap. No scaling is
263supported in this mode. Exmaple:
263 264
264 @@RXVT_NAME@@ -pixmap background.xpm -pe automove-background 265 @@RXVT_NAME@@ -pixmap background.xpm -pe automove-background
265 266
266=item block-graphics-to-ascii 267=item block-graphics-to-ascii
267 268
368 369
369=back 370=back
370 371
371=head2 Extension Objects 372=head2 Extension Objects
372 373
373Very perl extension is a perl class. A separate perl object is created 374Every perl extension is a perl class. A separate perl object is created
374for each terminal and each extension and passed as the first parameter to 375for each terminal and each extension and passed as the first parameter to
375hooks. So extensions can use their C<$self> object without having to think 376hooks. So extensions can use their C<$self> object without having to think
376about other extensions, with the exception of methods and members that 377about other extensions, with the exception of methods and members that
377begin with an underscore character C<_>: these are reserved for internal 378begin with an underscore character C<_>: these are reserved for internal
378use. 379use.
907 908
908 if (my $cb = $TERM->{_hook}[$htype]) { 909 if (my $cb = $TERM->{_hook}[$htype]) {
909 verbose 10, "$HOOKNAME[$htype] (" . (join ", ", $TERM, @_) . ")" 910 verbose 10, "$HOOKNAME[$htype] (" . (join ", ", $TERM, @_) . ")"
910 if $verbosity >= 10; 911 if $verbosity >= 10;
911 912
912 keys %$cb; 913 for my $pkg (keys %$cb) {
913
914 while (my ($pkg, $cb) = each %$cb) {
915 my $retval_ = eval { $cb->($TERM->{_pkg}{$pkg}, @_) }; 914 my $retval_ = eval { $cb->{$pkg}->($TERM->{_pkg}{$pkg}, @_) };
916 $retval ||= $retval_; 915 $retval ||= $retval_;
917 916
918 if ($@) { 917 if ($@) {
919 $TERM->ungrab; # better to lose the grab than the session 918 $TERM->ungrab; # better to lose the grab than the session
920 warn $@; 919 warn $@;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines