>> >> revert-buffer-preserve-functions >> >> revert-buffer-preserve-modes >> >> revert-buffer-preserve-read-only >> >> revert-buffer-preserve-outlines >> > >> > How about revert-buffer-restore- ? >> >> "restore" would be only part of the truth, >> because these functions first save the state, >> only their second task is to restore the saved state >> afterwards. > > IMO, "restore" is better than "state", because you don't really > restore any state: a buffer has no state, per se. "Restore" is also > better than "preserve". > > What is attractive in "restore" is that it is general and generic > enough to include all the meanings you have shown in your examples. > So I think "restore" is the best candidate till now. If someone has > better suggestions, please speak up. Since no one has better suggestions, here is the patch that uses "restore". This will create two different name prefixes: revert-buffer-preserve-modes revert-buffer-restore-read-only but this is fine. So here is a complete patch with docs: