> + (defvar before-kill-functions nil > + "List of functions called on the region before killing. > + This abnormal hook is run before `kill-region' and > + `copy-region-as-kill', with the beginning and end positions of > + the killed region as the arguments.")
I think it's usually important to keep the property that killing doesn't modify the buffer's text (when used in copy-as-kill), so rather than having before-kill-functions modify the buffer's text just before it's put in the kill-ring, it would be more convenient to make it return the string, i.e. use it as a replacement for buffer-substring. Stefan _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel