From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Idea for C-x v u Date: Mon, 27 Jun 2011 22:34:12 +0200 Message-ID: <4E08E944.2070202@swipnet.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1309206953 7616 80.91.229.12 (27 Jun 2011 20:35:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2011 20:35:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 27 22:35:49 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 1QbIX6-0003kr-Ja for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2011 22:35:48 +0200 Original-Received: from localhost ([::1]:50450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbIX5-0002nc-HD for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2011 16:35:47 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbIVd-0002On-ND for emacs-devel@gnu.org; Mon, 27 Jun 2011 16:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QbIVc-00019d-F2 for emacs-devel@gnu.org; Mon, 27 Jun 2011 16:34:17 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:41187) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QbIVc-00018n-0U; Mon, 27 Jun 2011 16:34:16 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 5ABC9C58C; Mon, 27 Jun 2011 22:34:13 +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: AlhuADHoCE5V4S1kPGdsb2JhbABSiRGPNo5qCwEBAQEeGQ0liHQCwCmGMASWcYsv X-IronPort-AV: E=Sophos;i="4.65,434,1304287200"; d="scan'208";a="1743512660" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb4.telenor.se with ESMTP; 27 Jun 2011 22:34:12 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id BB1BC7FA05A; Mon, 27 Jun 2011 22:34:12 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.18) Gecko/20110613 Thunderbird/3.1.11 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 62.127.194.20 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:141087 Archived-At: Richard Stallman skrev 2011-06-27 15.06: > Another idea is: if you have not made a diff since the last change in > the buffer, give an error, "Please look at a diff using C-x v = before > doing C-x v u". It is more convenient for the user to make the diff > with a separate command than to examine it inside of yes-or-no-p. > > Even if C-x v u does not make a diff, it should always call > yes-or-no-p. > Why not a customize variable vc-show-diff-before-revert that takes values yes, no or ask? Personally I'd set it to no. When I revert, it is usually to get back to a sane state after inserting debugging code. No need to see a diff of that. Jan D.