[Top][All Lists]

[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 <address@hidden> 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?


>> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]