[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69511: Restore any state after revert-buffer
From: |
Juri Linkov |
Subject: |
bug#69511: Restore any state after revert-buffer |
Date: |
Sun, 03 Mar 2024 19:55:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> Like Michael suggested a set of functions should be created.
>> These functions should share the same prefix.
>>
>> So the whole set of functions will be:
>>
>> revert-buffer-state-functions
>> revert-buffer-state-read-only
>> revert-buffer-state-outlines
>> ...
>>
>> Or like the variable 'preserve-modes' hints above,
>> the common prefix could be like this:
>>
>> revert-buffer-preserve-functions
>> revert-buffer-preserve-modes
>> revert-buffer-preserve-read-only
>> revert-buffer-preserve-outlines
>> ...
>>
>> Which prefix would you prefer?
>
> 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.
bug#69511: Restore any state after revert-buffer, Michael Heerdegen, 2024/03/02