From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Idea for C-x v u Date: Wed, 29 Jun 2011 01:55:05 +0200 Message-ID: <87y60ltsti.fsf@wanadoo.es> References: <4E08E944.2070202@swipnet.se> <87aad2f1f4.fsf@stupidchicken.com> <4E09F937.7060007@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309305342 4333 80.91.229.12 (28 Jun 2011 23:55:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2011 23:55:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 29 01:55:39 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 1Qbi82-00088T-2L for ged-emacs-devel@m.gmane.org; Wed, 29 Jun 2011 01:55:38 +0200 Original-Received: from localhost ([::1]:53131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbi81-0000w8-8x for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2011 19:55:37 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbi7m-0000vw-7s for emacs-devel@gnu.org; Tue, 28 Jun 2011 19:55:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qbi7k-0005bE-71 for emacs-devel@gnu.org; Tue, 28 Jun 2011 19:55:21 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:43452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qbi7j-0005ax-On for emacs-devel@gnu.org; Tue, 28 Jun 2011 19:55:20 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qbi7g-00083p-UH for emacs-devel@gnu.org; Wed, 29 Jun 2011 01:55:16 +0200 Original-Received: from 92.red-83-59-2.dynamicip.rima-tde.net ([83.59.2.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2011 01:55:16 +0200 Original-Received: from ofv by 92.red-83-59-2.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Jun 2011 01:55:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 92.red-83-59-2.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:dOte1udoOqcrO5tMvGPXgEv6n8w= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:141148 Archived-At: "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. [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: possible data loss!" > 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. > Add yes-or-no for C-x k? C-x k asks for confirmation with yes-or-no-p when the buffer has unsaved changes. [snip]