From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.help Subject: Re: How can I find changes before saving a file? Date: Wed, 12 Feb 2003 15:35:19 +0000 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87y94ltsug.fsf@china.shootybangbang.com> References: <68d3c32.0302120406.7b747908@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045064279 24828 80.91.224.249 (12 Feb 2003 15:37:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 15:37:59 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18iytG-0006B3-00 for ; Wed, 12 Feb 2003 16:33:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iyv6-0007fK-07 for gnu-help-gnu-emacs@m.gmane.org; Wed, 12 Feb 2003 10:35:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!uni-erlangen.de!fu-berlin.de!uni-berlin.de!host217-44-221-152.range217-44.btcentralplus.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: host217-44-221-152.range217-44.btcentralplus.com (217.44.221.152) Original-X-Trace: fu-berlin.de 1045063857 45077106 217.44.221.152 (16 [170119]) X-Orig-Path: china.shootybangbang.com!news X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6588 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6588 Ehud Karni wrote: > > > > If I have edited a file and want to see what changes I have > > > > made, how can I do that? > > > > > > You could compare the file with its backup. But that only works > > > after saving, of course. > > > > You could temporarily rename the modified buffer, load the file > > once more into emacs and start an ediff session. [...] > You could do M-x shell-command cat and compare the > current buffer with "*Shell Command Output*". You could use the command `diff-buffer-with-file' from Emacs CVS HEAD. There is `ibuffer-diff-with-file' in the Ibuffer package too.