Here's an updated version of my patch, which tries to simplify some of the code in the generic packages. I also added `perl-mode` as parent to `cperl-mode`, following the same reasoning, which helped me find other generic packages affected. Still no doc updates included. Stefan