[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#457: wdired and auto-revert-mode
From: |
martin rudalics |
Subject: |
bug#457: wdired and auto-revert-mode |
Date: |
Mon, 04 Aug 2008 18:08:33 +0200 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
> 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.
At the very moment the OP got "frustrated", the buffer was apparently
_unmodified_ since otherwise Emacs would have refused to auto-revert it.
Hence, the problem seems not in losing any changes.
> Is something in wdired doing (set-buffer-modified-p nil) *before* the
> changes have been recorded?
Yes, but why should that matter here? BTW, `wdired' also resets
`buffer-undo-list'. The important aspect is that as long as a user is
in `wdired-mode', buffer-modified status and `buffer-undo-list' should
faithfully reflect the user's editing steps.
Did you try my `buffer-read-only' patch? I use neither `dired' nor
`auto-revert-mode'.
martin
- 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