help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I find changes before saving a file?


From: John Paul Wallington
Subject: Re: How can I find changes before saving a file?
Date: Wed, 12 Feb 2003 15:35:19 +0000
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

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 <file-name> 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]