From mboxrd@z Thu Jan  1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: gmane.emacs.devel
Subject: Re: What happened to wdired.el?
Date: 30 Apr 2004 09:42:04 -0400
Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org
Message-ID: <m1pt9psi1i.fsf-monnier+emacs@gnu.org>
References: <200404281829.i3SITeGK028426@scanner2.ics.uci.edu>
	<m1llkfeirw.fsf-monnier+emacs@gnu.org>
	<200404290105.i3T15UGK014344@scanner2.ics.uci.edu>
	<m1y8oe7u1m.fsf-monnier+emacs@gnu.org> <87llkenrol.fsf@mail.jurta.org>
	<20040430084333.GA29704@fencepost>
NNTP-Posting-Host: deer.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: sea.gmane.org 1083332899 10652 80.91.224.253 (30 Apr 2004 13:48:19 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Fri, 30 Apr 2004 13:48:19 +0000 (UTC)
Cc: Juri Linkov <juri@jurta.org>, Dan Nicolaescu <dann@godzilla.ics.uci.edu>,
	emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 30 15:48:05 2004
Return-path: <emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org>
Original-Received: from quimby.gnus.org ([80.91.224.244])
	by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 1BJYN3-0005jv-00
	for <emacs-devel@deer.gmane.org>; Fri, 30 Apr 2004 15:48:05 +0200
Original-Received: from monty-python.gnu.org ([199.232.76.173])
	by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian))
	id 1BJYN3-0004K8-00
	for <emacs-devel@quimby.gnus.org>; Fri, 30 Apr 2004 15:48:05 +0200
Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org)
	by monty-python.gnu.org with esmtp (Exim 4.30)
	id 1BJYKD-00015d-Pc
	for emacs-devel@quimby.gnus.org; Fri, 30 Apr 2004 09:45:09 -0400
Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30)
	id 1BJYJy-000141-WA
	for emacs-devel@gnu.org; Fri, 30 Apr 2004 09:44:55 -0400
Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30)
	id 1BJYJQ-0000uG-Cw
	for emacs-devel@gnu.org; Fri, 30 Apr 2004 09:44:51 -0400
Original-Received: from [206.47.199.141] (helo=simmts12-srv.bellnexxia.net)
	by monty-python.gnu.org with esmtp (Exim 4.30)
	id 1BJYHG-0000bQ-3A; Fri, 30 Apr 2004 09:42:06 -0400
Original-Received: from empanada.local ([67.71.32.73]) by simmts12-srv.bellnexxia.net
	(InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP
	id <20040430134205.PRX25455.simmts12-srv.bellnexxia.net@empanada.local>;
	Fri, 30 Apr 2004 09:42:05 -0400
Original-Received: by empanada.local (Postfix, from userid 502)
	id 1A595170F62; Fri, 30 Apr 2004 09:42:05 -0400 (EDT)
Original-To: Miles Bader <miles@gnu.org>
In-Reply-To: <20040430084333.GA29704@fencepost>
Original-Lines: 19
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://mail.gnu.org/pipermail/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org
Xref: main.gmane.org gmane.emacs.devel:22436
X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22436

>> I think C-x C-q makes sense for wdired mode.  And the same key could
>> be used to start and finish wdired mode.

Since switching back to dired has irreversible side effects, I'm a bit
nervous about doing it that way.  It would work great tho if wdired was
changed so it doesn't perform the file operations but just records them for
dired so a dired-execute later actually performs them.

> Instead of binding C-x C-q, can it be made to use conditionalized bindings
> contingent on the `buffer-read-only' variable, as modes like diff-mode do?

I don't think we can do that with the current code: when switching to
wdired, we store the "current state" so that at the end we can see what has
changed and apply those changes.  Switching only bindings is not enough.
But if we change dired to constantly keep the "current state", then we
could do that.


        Stefan