Eli Zaretskii writes: >> I use cl-flet and (eval-when-compile (require 'cl-lib)). I hope that is >> ok. > > I'd prefer a simple internal function, or a lambda. I went with the lambda, it is the more concise choice. >> + (buffer-string)))) > > I think buffer-substring-no-properties would be better than > buffer-string, as we don't need to copy any text properties, right? Yes, indeed. I fixed that too. Regards, Raffael