Vaclav Barta <vbar(a)comp.cz> writes:
It's an admittedly minor inconsistency, but irritating: by
M-q is bound to fill-paragraph-or-region; cc-mode rebinds it to
c-fill-paragraph, which I find very useful (when I call it in a
comment, c-fill-paragraph stops reformatting at the boundaries of that
comment while fill-paragraph-or-region assimilates the surrounding
code as well), but cperl-mode doesn't... Since cperl-mode already has
a cperl-fill-paragraph function (doing what I want), I think it should
also bind cperl-fill-paragraph to M-q by default. Any objections?
You should bind cperl-fill-paragraph to
fill-paragraph-function, not directly changing M-q. That
way, every key binding of fill-paragraph-or-region will
be changed to use cperl-fill-paragraph.
Except that point, I agree it is a good change. Would you
care to post a patch to xemacs-patches?