>>> "SM" == Stefan Monnier writes: >> Couldn't rename-buffer, optionally, overwrite the content of a buffer. > Yes and no: it depends on what you mean by "overwrite the content of a buffer". > Here's what I think could be done easily: > - say you have buffers "mybuf" "otherbuf" > - you're in "mybuf" and you do `M-x rename-buffer RET otherbuf RET`. > - Emacs currently refuses it but it could accept your command by > first renaming "otherbuf" to "otherbuf<1>", or by > killing "otherbuf", ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is what I would prefer! Kill it. > or by asking you for a new name to use for that other buffer. > But the two buffers can be unified into a single one. > Of course, another option might be to tweak `rename-uniquely` so it > automatically chooses a more informative name than what you get by > adding a "". I think such a feature might be a good idea > in general. E.g. we could add a variable `buffer-name-suffix-function` > which some major modes could set to provide "meaningful" unique names. Yeah, but I tend to loose the track easily of these buffers. > Stefan