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: Ehud Karni
Subject: Re: How can I find changes before saving a file?
Date: Wed, 12 Feb 2003 16:56:57 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12 Feb 2003 15:14:12 +0100, Roland Winkler 
<Roland.Winkler@physik.uni-erlangen.de> wrote:
>
> kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes:
>
> > > 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.

I think renaming the buffer wouldn't do, Emacs still remembers the DISK
file name (even after renaming), visiting the file again will go back
to the same buffer.

You could do M-x shell-command cat <file-name> and compare the
current buffer with "*Shell Command Output*".

Ehud.


- --
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud@unix.mvs.co.il                  Better  Safe  Than  Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE+SmC5LFvTvpjqOY0RAoUUAJ9KBRIxMjFgm5RYVlM7qE46JeYe5wCfVWYs
WeLieDLYk1ufbCepAjVdbsA=
=bLMV
-----END PGP SIGNATURE-----




reply via email to

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