From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: deleteallspam@yahoo.com (PL) Newsgroups: gmane.emacs.help Subject: Re: How can I find changes before saving a file? Date: 19 Feb 2003 09:47:43 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <68d3c32.0302190947.6d01f648@posting.google.com> References: <68d3c32.0302120406.7b747908@posting.google.com> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045677198 28715 80.91.224.249 (19 Feb 2003 17:53:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2003 17:53:18 +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 18lYPD-0007Sm-00 for ; Wed, 19 Feb 2003 18:53:15 +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 18lYNJ-0008Dx-05 for gnu-help-gnu-emacs@m.gmane.org; Wed, 19 Feb 2003 12:51:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: 62.95.15.50 Original-X-Trace: posting.google.com 1045676863 30165 127.0.0.1 (19 Feb 2003 17:47:43 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 19 Feb 2003 17:47:43 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:110393 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:6895 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6895 Thanks, that's pretty much what I was looking for! I seem to have too old emacs version (20.4.*) so M-x compare-windows does not work (at least it doesn't for me). One should have 20.6 and later according to other postings. But "Tools->Compare->Two Buffers" does the job just fine! Rgds Peter "Ehud Karni" wrote in message news:... > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 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 "*Shell Command Output*". > > Ehud. >