From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#457: wdired and auto-revert-mode Date: Mon, 04 Aug 2008 18:08:33 +0200 Message-ID: <48972981.5030600@gmx.at> References: <86abftuiy5.fsf@macs.hw.ac.uk> <4896F015.8080008@gmx.at> <864p60vrar.fsf@macs.hw.ac.uk> Reply-To: martin rudalics , 457@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1217867319 10344 80.91.229.12 (4 Aug 2008 16:28:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Aug 2008 16:28:39 +0000 (UTC) Cc: michael_heerdegen@web.de, 457@emacsbugs.donarmstrong.com To: Joe Wells Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 04 18:29:30 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KQ2vz-0006yp-IL for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2008 18:29:23 +0200 Original-Received: from localhost ([127.0.0.1]:59567 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQ2v4-0002Qf-Fp for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Aug 2008 12:28:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KQ2u8-0001KN-Fb for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 12:27:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KQ2u5-0001H8-RG for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 12:27:27 -0400 Original-Received: from [199.232.76.173] (port=54026 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KQ2u5-0001Gm-KB for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 12:27:25 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42529) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KQ2u5-0001z3-6u for bug-gnu-emacs@gnu.org; Mon, 04 Aug 2008 12:27:25 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m74GRMMM022451; Mon, 4 Aug 2008 09:27:22 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m74GF349018373; Mon, 4 Aug 2008 09:15:03 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 04 Aug 2008 16:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 457 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 457-submit@emacsbugs.donarmstrong.com id=B457.121786608416758 (code B ref 457); Mon, 04 Aug 2008 16:15:03 +0000 Original-Received: (at 457) by emacsbugs.donarmstrong.com; 4 Aug 2008 16:08:04 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m74G7xOs016752 for <457@emacsbugs.donarmstrong.com>; Mon, 4 Aug 2008 09:08:01 -0700 Original-Received: (qmail invoked by alias); 04 Aug 2008 16:07:53 -0000 Original-Received: from 62-47-50-94.adsl.highway.telekom.at (EHLO [62.47.50.94]) [62.47.50.94] by mail.gmx.net (mp063) with SMTP; 04 Aug 2008 18:07:53 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+2NLQszL+2rL6UCEjTK3qx9PuAHJcU8ATfcOYNym dG1bjAcV7BQnRv User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <864p60vrar.fsf@macs.hw.ac.uk> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.74 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 04 Aug 2008 12:27:27 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19013 Archived-At: > 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