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: 05 Sep 2006 18:39:18 +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 1157478046 16952 80.91.229.2 (5 Sep 2006 17:40:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Sep 2006 17:40:46 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 05 19:40:45 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 1GKeua-0003PX-Lf for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Sep 2006 19:40:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKeua-0001bE-8c for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Sep 2006 13:40:36 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!ecngs!feeder2.ecngs.de!193.141.41.141.MISMATCH!npeer1.de.kpn-eurorings.net!npeer-devel!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:141545 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:37166 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