> The idea of the yank-handler text property is that certain kill > strings are encoded specially, and need to be decoded when they are > yanked. Maybe longlines could use this instead of a new hook for > yanking.
It is possible to use the yank-handler property to remove the newlines from longlines text when copying into other Emacs buffers; however, since the newlines are copied onto the clipboard and X selection, they will show up when the user does a paste in another application. So this is not a good approach. > Or maybe you could just use after-change-functions. > Would that work? The only way I can see for this to work is for the after-change function to test this-command, which I think is not very robust. So I guess the best solution is to have an encoding hook for kills, and a decoding hook for yanks. I also think we should wait till after the release before implementing this (which hopefully shouldn't be a long wait...) _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel