From mboxrd@z Thu Jan  1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Juri Linkov <juri@jurta.org>
Newsgroups: gmane.emacs.devel
Subject: Re: What happened to wdired.el?
Date: Tue, 04 May 2004 09:05:32 +0300
Organization: JURTA
Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org
Message-ID: <877jvssn2g.fsf@mail.jurta.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>
	<m1pt9psi1i.fsf-monnier+emacs@gnu.org> <873c6irfe7.fsf@mail.jurta.org>
	<E1BKe2V-0005Em-95@fencepost.gnu.org>
NNTP-Posting-Host: deer.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: sea.gmane.org 1083653705 12916 80.91.224.253 (4 May 2004 06:55:05 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Tue, 4 May 2004 06:55:05 +0000 (UTC)
Cc: dann@godzilla.ics.uci.edu, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 04 08:54:56 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 1BKtpQ-0008Mu-00
	for <emacs-devel@deer.gmane.org>; Tue, 04 May 2004 08:54:56 +0200
Original-Received: from monty-python.gnu.org ([199.232.76.173])
	by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian))
	id 1BKtpP-0000kD-00
	for <emacs-devel@quimby.gnus.org>; Tue, 04 May 2004 08:54:55 +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 1BKtoX-0004oG-9F
	for emacs-devel@quimby.gnus.org; Tue, 04 May 2004 02:54:01 -0400
Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30)
	id 1BKtnp-0004nu-Rw
	for emacs-devel@gnu.org; Tue, 04 May 2004 02:53:17 -0400
Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30)
	id 1BKtnH-0004iz-SC
	for emacs-devel@gnu.org; Tue, 04 May 2004 02:53:15 -0400
Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com)
	by monty-python.gnu.org with esmtp (Exim 4.30)
	id 1BKtnH-0004is-2s; Tue, 04 May 2004 02:52:43 -0400
Original-Received: from mail.jurta.org (80-235-34-218-dsl.mus.estpak.ee [80.235.34.218])
	by spoon.dreamhost.com (Postfix) with ESMTP
	id 4461613D868; Mon,  3 May 2004 23:52:40 -0700 (PDT)
Original-To: rms@gnu.org
In-Reply-To: <E1BKe2V-0005Em-95@fencepost.gnu.org> (Richard Stallman's
	message of "Mon, 03 May 2004 10:03:23 -0400")
User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)
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:22681
X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22681

Richard Stallman <rms@gnu.org> writes:
>     The user can forget to call dired-execute later.  But what about
>     C-x C-q asking yes/no question about accepting the changes,
>     and an option to disable such a question?
>
> What are the changes in question, and why would they be lost?

wdired provides one user-level function `wdired-change-to-wdired-mode'
to start editing the file names and two functions to exit wdired-mode:
`wdired-finish-edit' and `wdired-abort-changes' with the former
committing the changes and the latter aborting them.  Both return
wdired to dired mode.

I proposed to add one user-level function which depending on the
user's answer to the question about accepting changes would call
either `wdired-finish-edit' or `wdired-abort-changes'.  And an option
which will allow to assume that the user always wants to accept the
changes by answering `yes' and calling `wdired-finish-edit'.

-- 
Juri Linkov
http://www.jurta.org/emacs/