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: Thu, 21 Aug 2008 10:04:09 +0200 Message-ID: <48AD2179.2070104@gmx.at> References: <86abftuiy5.fsf@macs.hw.ac.uk> <4896F015.8080008@gmx.at> <864p60vrar.fsf@macs.hw.ac.uk> <48972981.5030600@gmx.at> <86k5enh334.fsf@blueyonder.co.uk> <18595.2629.72205.97367@localhost.localdomain> 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-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219307298 23199 80.91.229.12 (21 Aug 2008 08:28:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 08:28:18 +0000 (UTC) To: michael_heerdegen@web.de, 457@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 10:29:11 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 1KW5XO-0003Pj-SH for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 10:28:59 +0200 Original-Received: from localhost ([127.0.0.1]:50805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KW5WR-0003Xz-Fk for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2008 04:27:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KW5W0-0003O1-LO for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 04:27:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KW5Vy-0003N2-Qc for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 04:27:31 -0400 Original-Received: from [199.232.76.173] (port=48698 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KW5Vy-0003Mi-Ad for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 04:27:30 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:39488) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KW5Vx-0005rD-Ua for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2008 04:27:30 -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 m7L8RRTZ001464; Thu, 21 Aug 2008 01:27:27 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7L8F3JU029601; Thu, 21 Aug 2008 01: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: Thu, 21 Aug 2008 08: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.121930600427750 (code B ref 457); Thu, 21 Aug 2008 08:15:03 +0000 Original-Received: (at 457) by emacsbugs.donarmstrong.com; 21 Aug 2008 08:06:44 +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 m7L86eqQ027744 for <457@emacsbugs.donarmstrong.com>; Thu, 21 Aug 2008 01:06:41 -0700 Original-Received: (qmail invoked by alias); 21 Aug 2008 08:06:34 -0000 Original-Received: from 62-47-34-123.adsl.highway.telekom.at (EHLO [62.47.34.123]) [62.47.34.123] by mail.gmx.net (mp004) with SMTP; 21 Aug 2008 10:06:34 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19OtS598ZBOzX+ohHonVZvRQvNL5sUwxtImZE0bTj X86jIt5dP5Czz8 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <18595.2629.72205.97367@localhost.localdomain> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.74 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 21 Aug 2008 04:27:31 -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:19592 Archived-At: > > The buffer-modified flag is mostly good enough for buffers visiting > > ordinary files, but is hard to keep correct for fancy buffers like > > Dired buffers. Of course, this wasn't so important before > > auto-revert-mode existed. > > Yes. And this is also the reason for another, much worse bug which > makes auto-revert-mode in dired nearly useless: > > If you copy files etc. (what else should you do with dired?), your > buffer gets buffer-modified-p, which means that auto-reverting doesn't > take place any more until you revert manually with g. The buffer-modified status of dired-buffers has no significance: Do `dired-mark' for some file and undo that via `dired-unmark' or plain `undo'. The buffer will remain to appear modified. Do `dired-unmark' for some file in a fresh dired buffer. The buffer will appear modified. We'd have to specify the semantics of modifiedness for dired buffers first. Then we could decide what to do when a directory is modified by external intervention and autorevert picks up those changes. OTOH wdired DTRT WRT `undo' and we probably shouldn't let autorevert interfere with this. martin