I just pushed to `scratch/replace-region-contents` a small series of patches which consolidate `replace-buffer-contents` and `replace-region-contents`, marking `replace-buffer-contents` as obsolete and making `replace-region-contents` usable as a replacement for the `replace-region` I'd still prefer (the difference is just a mere `-contents` plus an extra `0` argument, but as argued here before, this sets a trap for the unwary user who may unwittingly end up calling a very expensive function). The first patch is the one which makes the actual change the subsequent patches just change other code to use the new functionality. Stefan