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: Wed, 29 Jun 2011 07:56:47 +0200 Message-ID: <4E0ABE9F.3060803@swipnet.se> References: <4E08E944.2070202@swipnet.se> <87aad2f1f4.fsf@stupidchicken.com> <4E09F937.7060007@swipnet.se> <87y60ltsti.fsf@wanadoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1309327041 447 80.91.229.12 (29 Jun 2011 05:57:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Jun 2011 05:57:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?ISO-8859-1?Q?=D3scar_Fuentes?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 29 07:57:17 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 1Qbnm0-0006VF-IT for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2011 07:57:16 +0200 Original-Received: from localhost ([::1]:37002 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbnlz-0004nq-O5 for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2011 01:57:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbnle-0004nC-KY for emacs-devel@gnu.org; Wed, 29 Jun 2011 01:56:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbnlc-0001rr-Ro for emacs-devel@gnu.org; Wed, 29 Jun 2011 01:56:54 -0400 Original-Received: from smtprelay-b21.telenor.se ([195.54.99.212]:48897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbnlc-0001rk-B8 for emacs-devel@gnu.org; Wed, 29 Jun 2011 01:56:52 -0400 Original-Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b21.telenor.se (Postfix) with ESMTP id 5A70EEA802 for ; Wed, 29 Jun 2011 07:56:50 +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: ArFqAC+9Ck5V4S1kPGdsb2JhbABSiRGePwsBAQEBHhkNJYh4AsAFhjAElwsdixo X-IronPort-AV: E=Sophos;i="4.65,441,1304287200"; d="scan'208";a="25212356" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb3.telenor.se with ESMTP; 29 Jun 2011 07:56:49 +0200 Original-Received: from [10.225.16.37] (unknown [193.45.43.33]) by coolsville.localdomain (Postfix) with ESMTPSA id 059ED7FA05A; Wed, 29 Jun 2011 07:56:48 +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: <87y60ltsti.fsf@wanadoo.es> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.54.99.212 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:141152 Archived-At: =D3scar Fuentes skrev 2011-06-29 01:55: > "Jan D." 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= no >>> 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. > > I have never hit C-x v u by mistake. Sometimes hitted them on the wrong > buffer, though. Semantics, not an argument. > > [snip] > >> Just because something may be lost >> doesn't mean we should add yes-or-no for them all. > > AFAIK, yes-or-no exists precisely with the purpose of being more > cumbersome to answer than y-or-no, as a way of saying: "beware: possibl= e > data loss!" The bzr command run in a shell does not ask. Why must Emacs be so much=20 harder to use than the command line? Isn't the point of vc-mode to be=20 convinient? > >> What if there is important text in a temporary buffer? > > That's your fault. As the name implies, temporary buffers are made for > throwing them away. > And how is that different? Reverting the wrong file should be my fault=20 also. Why am I treated as a stupid child in one instance but as a=20 responsible adult in another? I don't know why you are arguing for this. You can set default to be=20 ask, I'm just asking for alternatives for those of us that don't what to=20 be asked. Jan D.