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

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

Re: how to create the patch from current file


From: Teemu Likonen
Subject: Re: how to create the patch from current file
Date: Wed, 15 Jul 2009 12:40:53 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

On 2009-07-15 11:22 (+0200), Michal wrote:

> Imagine the following situation:
> I just changed some part of file, but did not save it.
> Now I want to create a patch comparing to the original file.
> Do You know any emacs command that would do it for me?

 a) M-x diff-buffer-with-file

 b) Save the file with C-u C-u C-x C-s, that is, the normal save command
    with two prefix arguments. It will force the previously saved file
    to become backup file and the current version is saved as the main
    file. Then compare them.


reply via email to

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