From: michael@cadilhac.name (Michaël Cadilhac)
Cc: help-gnu-emacs@gnu.org
Subject: Re: diffs between a buffer and the underlying file
Date: Thu, 14 Sep 2006 08:55:34 +0200 [thread overview]
Message-ID: <87wt872azd.fsf@lrde.org> (raw)
In-Reply-To: <m2venrkm1b.fsf@janus.isnogud.escape.de> (Urs Thuermann's message of "14 Sep 2006 08\:19\:28 +0200")
[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]
Urs Thuermann <urs@isnogud.escape.de> writes:
> 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.
I think what you want is
M-x diff-buffer-with-file RET RET
--
/!\ My mail address changed, please update your files accordingly.
| Michaël `Micha' Cadilhac | Would someone please DTRT with this, |
| Epita/LRDE Promo 2007 | then ACK? |
| http://michael.cadilhac.name | -- Richard Stallman |
`-- - JID: micha@amessage.be --' - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2006-09-14 6:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-14 6:19 diffs between a buffer and the underlying file Urs Thuermann
2006-09-14 6:55 ` Michaël Cadilhac [this message]
2006-09-17 8:07 ` Urs Thuermann
2006-09-17 8:20 ` Michaël Cadilhac
[not found] ` <mailman.7052.1158517019.9609.help-gnu-emacs@gnu.org>
2006-09-18 17:30 ` Urs Thuermann
2006-09-20 19:11 ` John Sullivan
[not found] ` <mailman.7207.1158782592.9609.help-gnu-emacs@gnu.org>
2006-09-21 4:14 ` Tim X
2006-10-14 19:56 ` David Combs
2006-09-21 7:43 ` Romain Francoise
2006-09-14 7:13 ` David Hansen
2006-09-14 8:57 ` Darren
-- strict thread matches above, loose matches on Subject: below --
2006-09-05 16:39 Urs Thuermann
2006-09-05 18:10 ` Eric Hanchrow
2006-09-06 0:18 ` John Paul Wallington
2006-09-06 9:18 ` Romain Francoise
2006-09-06 1:39 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wt872azd.fsf@lrde.org \
--to=michael@cadilhac.name \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).