From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.help Subject: Re: How can I find changes before saving a file? Date: Wed, 12 Feb 2003 16:56:57 +0200 Organization: Mivtach-Simon Insurance agencies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200302121456.h1CEuvAZ002045@beta.mvs.co.il> References: <68d3c32.0302120406.7b747908@posting.google.com> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1045061860 13246 80.91.224.249 (12 Feb 2003 14:57:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 14:57:40 +0000 (UTC) Cc: kai.grossjohann@uni-duisburg.de 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 18iyKQ-0003RT-00 for ; Wed, 12 Feb 2003 15:57:39 +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 18iyKR-0000Ng-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 12 Feb 2003 09:57:39 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18iyKA-0000Gr-00 for help-gnu-emacs@gnu.org; Wed, 12 Feb 2003 09:57:22 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18iyK6-00007n-00 for help-gnu-emacs@gnu.org; Wed, 12 Feb 2003 09:57:19 -0500 Original-Received: from unix.simonwiesel.co.il ([192.114.178.12] helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iyK6-00005c-00 for help-gnu-emacs@gnu.org; Wed, 12 Feb 2003 09:57:18 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.11.6/8.11.6) with ESMTP id h1CEuwM10145; Wed, 12 Feb 2003 16:56:59 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.5/8.12.5) with ESMTP id h1CEuwH6002051; Wed, 12 Feb 2003 16:56:58 +0200 Original-Received: (from ehud@localhost) by beta.mvs.co.il (8.12.5/8.12.5/Submit) id h1CEuvAZ002045; Wed, 12 Feb 2003 16:56:57 +0200 X-Authentication-Warning: beta.mvs.co.il: ehud set sender to ehud@unix.mvs.co.il using -f Original-To: Roland.Winkler@physik.uni-erlangen.de In-reply-to: (message from Roland Winkler on 12 Feb 2003 15:14:12 +0100) X-Mailer: Emacs 21.2.91.3 rmail (send-msg 1.108) Original-cc: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:6586 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6586 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12 Feb 2003 15:14:12 +0100, Roland Winkler wrote: > > kai.grossjohann@uni-duisburg.de (Kai Gro=DFjohann) 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 and compare the current buffer with =22*Shell Command Output*=22. Ehud. - -- Ehud Karni Tel: +972-3-7966-561 /=22\ 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=3D =3DbLMV -----END PGP SIGNATURE-----