emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

2 annoying questions for `find-alternate-file`


From: Damien Cassou
Subject: 2 annoying questions for `find-alternate-file`
Date: Thu, 19 Jul 2012 18:29:34 +0200

Hi,

`find-alternate-file` currently asks 2 questions when the current buffer
contains unsaved changes. If you really want what you asked for, you
have to first answer no and then yes:

"Buffer %s is modified; save it first? "           -> no
"Kill and replace the buffer without saving it? "  -> yes

This is annoying. These two questions have already been changed multiple
times and there have already been discussions about it, for
example:

http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00101.html

I think that's a sign things are too complex.

I propose to replace these 2 questions by just 1 which could be along the
lines of "Do you really want to do what you asked for?". When the user
confirms, his changes are lost. When the user does not confirm, the
process is aborted, giving him a chance to save and try again.

I attach a possible patch.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

Attachment: one-question-for-find-alternate-file.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]