[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#457: wdired and auto-revert-mode
From: |
Joe Wells |
Subject: |
bug#457: wdired and auto-revert-mode |
Date: |
Mon, 04 Aug 2008 14:33:00 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
martin rudalics <rudalics@gmx.at> writes:
>> The correct way to handle this is to mark the buffer as modified
>> during the period for which it should not be auto-reverted.
>
> No. `buffer-modified-p' is busy telling whether the user has modified
> the buffer with `wdired'. It's used many times in wdired.el.
Just make sure to leave the buffer marked as modified as long as there
are changes that should not be lost by reverting. If you do that,
then auto-revert-mode will not lose changes.
Is something in wdired doing (set-buffer-modified-p nil) *before* the
changes have been recorded?
--
Joe
>> The
>> function auto-revert-handler refuses to do anything with buffers that
>> are marked as modified. The first thing auto-revert-handler does is
>> check the condition (buffer-modified-p).
>
> martin
--
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.
- bug#457: wdired and auto-revert-mode, martin rudalics, 2008/08/03
- bug#457: wdired and auto-revert-mode, Joe Wells, 2008/08/04
- bug#457: wdired and auto-revert-mode, martin rudalics, 2008/08/04
- Message not available
- bug#457: wdired and auto-revert-mode, Michael Heerdegen, 2008/08/11
- bug#457: wdired and auto-revert-mode, Joe Wells, 2008/08/11
- bug#457: wdired and auto-revert-mode, Michael Heerdegen, 2008/08/13
- bug#457: wdired and auto-revert-mode, martin rudalics, 2008/08/21