[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to create the patch from current file
From: |
Pascal J. Bourguignon |
Subject: |
Re: how to create the patch from current file |
Date: |
Wed, 15 Jul 2009 11:52:20 +0200 |
User-agent: |
Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux) |
Teemu Likonen <tlikonen@iki.fi> writes:
> 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
That's great!
> 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.
--
__Pascal Bourguignon__