help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show unsaved changes (as diff)


From: Thierry Volpiatto
Subject: Re: Show unsaved changes (as diff)
Date: Tue, 25 Sep 2007 09:14:28 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux)

The following message is a courtesy copy of an article
that has been posted to gnu.emacs.help as well.

>>>>> "Martin" == Martin Fischer <nospam@nospam.net> writes:

    >>>>>> David Kastrup writes:
    >> Date: Sun, 23 Sep 2007 16:39:59 +0200
    >> 
    >> Florian Lorenzen writes:
    >> 
    >>> Hello,
    >>> 
    >>> I have a very innocent question, I'm sorry that I could not
    >>> figure out the answer myself: is there a quick way to ask Emacs
    >>> to show the unsaved changes in a file's buffer as a diff?
    >>> Sometimes, I attempt to kill a bufer and Emacs asks me if I want
    >>> do discard the changes. As my memory is very weak sometimes, I
    >>> cannot recall what I had changed and if this was important in
    >>> any way. So, I'd simply like to see what I'd throw away. Of
    >>> course, I can copy the file's buffer's content to a new buffer,
    >>> revert the file's buffer and make a diff on these two. But is
    >>> there something ready-made for this kind of situation, like M-x
    >>> show-unsaved-changes?
    >> 
    >> M-x diff-buffer-with-file RET
    >> 
    >> -- David Kastrup, Kriemhildstr. 15, 44793 Bochum
    >> 

Hi,

    Martin> by the way, is it possible to use this in some way with the
    Martin> more "readable" representation of ediff and how could it be
    Martin> done (moderate lisp knowledge) ?

    Thierry> Hello, you can use C-x s instead of C-x C-s you will have a
    Thierry> prompt for d (diff) s q etc..  (only with emacs >=22)



-- 
A + Thierry
pubkey: http://pgp.mit.edu/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]