Hey, happy to help. But my helping you is not done yet. ;}
Program stops after printing "bad event type" message .. .
... but that goes away (and a Tk window emerges) if I change
Other minor problems ... (1) chomp fails to clear ^M in __DATA__ ...
... which causes above
(3) There seems to spurious tab characters on lines 228, 769, 771-772, 774-775.
--- PMEdit-001.000202-1.pl--ORIG Fri Dec 1 00:57:17 2006
+++ PMEdit-001.000202-1.pl Fri Dec 1 02:44:20 2006
@@ -225,7 +225,7 @@
my %commands = (
selAll => \&do_selAll,
copy => \&do_copy,
- paste => \&do_paste,
+ paste => \&do_paste,
);
my $realText = $text->Subwidget ('scrolled');
@@ -766,13 +766,13 @@
sub about {
my $versions = '';
for (@usedModules) {
- my $name = $_->[1];
+ my $name = $_->[1];
- $name =~ s/\..*//;
- $name =~ s|[\\/]|::|g;
+ $name =~ s/\..*//;
+ $name =~ s|[\\/]|::|g;
- my $version = $name->VERSION;
- $versions .= "$name \t$version\n" if defined $version;
+ my $version = $name->VERSION;
+ $versions .= "$name \t$version\n" if defined $version;
}
my $msg = <<"MSG";
@@ -1059,7 +1059,7 @@
while (<DATA>) {
# Load the default configuration stuff
- chomp;
+ s/\s+$//;
next if ! length;
last if /^#key /;
next if /^#/;
@@ -1136,11 +1136,10 @@
while (<DATA>) {
# Load key binding information
next if /^#/;
-
- chomp;
+
s/^\s+//;
s/\s+$//;
-
+
next if ! length;
my ($tag, $key, $menuItem, $toolbarItem, $rightClickItem) = s
+plit /\s*,\s*/;
@@ -1239,7 +1238,7 @@
strike,Control s,Format/Strike out,,Strike out
sub,Control u,Format/Subscript,,Subscript
super,Control s,Format/Superscript,,Superscript
-underline,Control _,Format/Underline,,Underline
+underline,Control 9,Format/Underline,,Underline
-,-,Format/-,-,
code,Control k,Format/Code,,Code
quote,Control q,Format/Blockquote,,Blockquote
@@ -1247,4 +1246,4 @@
#links - still bindings
cpan,,Links/CPAN,,CPAN link
id,Control d,Links/Node,,Node id link
-name,Control n,Links/Name,,Node name link
\ No newline at end of file
+name,Control n,Links/Name,,Node name link