I haven't thought really hard about it, but superficially, it would seem like a pretty common occurrence that the transformation should be different depending on the context (things like "was the beginning of the string at BOL?", or maybe for message-mode "is this taken from the header or the body of the email", ...).
It's often a mistake to aim for generality that goes beyond the uses we have envisioned, because any easy job can be made hard if you do that. Anyway, it is easy enough to have a convention to put point at the start of where the text came from, before running the hook functions. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel