From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Fischer Newsgroups: gmane.emacs.help Subject: Re: Show unsaved changes (as diff) Date: Mon, 24 Sep 2007 18:44:58 +0100 Organization: Arcor Message-ID: References: <85tzplo37k.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190667900 3388 80.91.229.12 (24 Sep 2007 21:05:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2007 21:05:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 24 23:04:54 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZv6h-0004bV-FZ for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2007 23:04:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZv6e-0005ox-P3 for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Sep 2007 17:04:40 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Shakespeare: "He draweth out the thread of his verbosity finer than the staple of his argument." -- Love's Labor's Lost, V.1 User-Agent: Emacs Gnus Cancel-Lock: sha1:U9bf93tNZVZxAsmRxgxp2OhAZTE= Original-Lines: 37 Original-NNTP-Posting-Date: 24 Sep 2007 19:44:45 CEST Original-NNTP-Posting-Host: 61119b04.newsspool2.arcor-online.net Original-X-Trace: DXC=\eT]o2nji3@@Y=h<_c3PkHA9EHlD; 3YcB4Fo<]lROoRA<`=YMgDjhgBV98WgXW_5CNni:2_heZQBLFoZ7NkRVbSHUTjJZSC; T]C Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: shelby.stanford.edu gnu.emacs.help:152295 X-Mailman-Approved-At: Mon, 24 Sep 2007 17:04:25 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47810 Archived-At: >>>>> David Kastrup writes: > Date: Sun, 23 Sep 2007 16:39:59 +0200 > > Florian Lorenzen writes: > >> Hello, >> >> I have a very innocent question, I'm sorry that I could not figure out >> the answer myself: is there a quick way to ask Emacs to show the >> unsaved changes in a file's buffer as a diff? Sometimes, I attempt to >> kill a bufer and Emacs asks me if I want do discard the changes. As my >> memory is very weak sometimes, I cannot recall what I had changed and >> if this was important in any way. So, I'd simply like to see what I'd >> throw away. Of course, I can copy the file's buffer's content to a new >> buffer, revert the file's buffer and make a diff on these two. But is >> there something ready-made for this kind of situation, like M-x >> show-unsaved-changes? > > M-x diff-buffer-with-file RET > > -- > David Kastrup, Kriemhildstr. 15, 44793 Bochum > Hi, by the way, is it possible to use this in some way with the more "readable" representation of ediff and how could it be done (moderate lisp knowledge) ? Thank you Martin -- parozusa at web dot de