From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Unknown Newsgroups: gmane.emacs.help Subject: Re: How can I find changes before saving a file? Date: Wed, 12 Feb 2003 12:45:07 GMT Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <68d3c32.0302120406.7b747908@posting.google.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: main.gmane.org 1045054121 9519 80.91.224.249 (12 Feb 2003 12:48:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 12:48:41 +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 18iwJb-0002TJ-00 for ; Wed, 12 Feb 2003 13:48: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 18iwLO-0004NT-05 for gnu-help-gnu-emacs@m.gmane.org; Wed, 12 Feb 2003 07:50:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail Original-From: Le Wang Original-Newsgroups: gnu.emacs.help Original-Lines: 19 User-Agent: KNode/0.7.1 Original-NNTP-Posting-Host: 24.192.182.203 Original-X-Complaints-To: abuse@rogers.com Original-X-Trace: news01.bloor.is.net.cable.rogers.com 1045053907 24.192.182.203 (Wed, 12 Feb 2003 07:45:07 EST) Original-NNTP-Posting-Date: Wed, 12 Feb 2003 07:45:07 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:110079 Original-To: 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:6583 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6583 PL wrote: > If I have edited a file and want to see what changes I have made, how > can I do that? I can of course use "Ctrl-x u" to undo the changes > one-by-one, but that's not really what I want to do. Then I would have > to re-do the un-doings to get the file back... > > Another way is to copy the file on disk, save the file, and compare > with the copy. But that means I have to save the file. I want to be > able to find the edits *before* I save. > > Any ideas, anyone? Look into highlight-changes-mode. I don't see a reason why this can't be done using the undo information, though. That sounds smarter and more efficient to me. -- Le