From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Idea for C-x v u Date: Tue, 28 Jun 2011 17:54:31 +0200 Message-ID: <4E09F937.7060007@swipnet.se> References: <4E08E944.2070202@swipnet.se> <87aad2f1f4.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309276810 27287 80.91.229.12 (28 Jun 2011 16:00:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2011 16:00:10 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 18:00:06 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qbahp-0006ki-5B for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2011 18:00:05 +0200 Original-Received: from localhost ([::1]:57256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbahn-00058U-OM for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2011 12:00:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:55860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbacc-0003qi-JX for emacs-devel@gnu.org; Tue, 28 Jun 2011 11:54:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbaca-0002Bl-5H for emacs-devel@gnu.org; Tue, 28 Jun 2011 11:54:42 -0400 Original-Received: from smtprelay-h22.telenor.se ([195.54.99.197]:36463) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbacZ-0002BY-LA; Tue, 28 Jun 2011 11:54:39 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id E0F06EA5E2; Tue, 28 Jun 2011 17:54:37 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgJaAPb4CU5V4S1kPGdsb2JhbABShEmESJ4uCwEBAQEeGQ0liHmvY5EogSuDeYEMBJZ+HYsY X-IronPort-AV: E=Sophos;i="4.65,437,1304287200"; d="scan'208";a="202125577" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb2.telenor.se with ESMTP; 28 Jun 2011 17:54:34 +0200 Original-Received: from [10.225.16.32] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 1C2CB7FA05A; Tue, 28 Jun 2011 17:54:33 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; sv-SE; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 In-Reply-To: <87aad2f1f4.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.54.99.197 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141135 Archived-At: Chong Yidong skrev 2011-06-28 16:58: > Jan Dj=C3=A4rv writes: > >> Why not a customize variable vc-show-diff-before-revert that takes >> values yes, no or ask? Personally I'd set it to no. > > Really? If you type `C-x v u' by mistake, you lose your changes with n= o > possibility of retrieval. If there's anything that needs a yes-or-no > prompt, vc-revert is it. I have never hit C-x v u by mistake. u is pretty far from other common=20 vc operations (=3D, d). Just because something may be lost doesn't mean=20 we should add yes-or-no for them all. What if there is important text=20 in a temporary buffer? Add yes-or-no for C-x k? I don't have rm=20 aliased to rm -i either. It works for me and probably others. Anyway, the default may very well be ask. Jan D.