Stefan Monnier wrote: > An alternative is to use not a function but a buffer (which would mean > "use the region's content, if active"). Yeah, allowing a function might be a giant bit too open-ended. Attached please find buffer-passing implementation.