From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Urs Thuermann Newsgroups: gmane.emacs.help Subject: diffs between a buffer and the underlying file Date: 14 Sep 2006 08:19:28 +0200 Organization: escape e.V. - Verein zur Foerderung der Datenkommuniation Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1158216034 7082 80.91.229.2 (14 Sep 2006 06:40:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Sep 2006 06:40:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 14 08:40:32 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GNktj-0001qg-4k for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Sep 2006 08:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNkth-000618-W0 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Sep 2006 02:40:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!193.201.147.81.MISMATCH!feed.xsnews.nl!feeder.xsnews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!gaertner.de!escape.de!janus.isnogud.escape.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Original-NNTP-Posting-Host: janus.isnogud.escape.de User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:141739 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37361 Archived-At: I sometimes get into the following situation: I open a file, make some changes, then I want to see the changes before saving the file. The best way to do this seems to be to set the region to the whole buffer, write the region to some temporary file, and run diff on the two files. But I find this very unconvenient. I'd like to have a function in emacs which can be applied to a buffer, say buffer A, that opens a new buffer displaying all the changes between the buffer A and the disk file, opened in buffer A. Searching the emacs documentation I haven't found anything like this. Only functions for diff'ing two buffers or two files. urs