* ediff between buffer and corresponding (changed) file
@ 2006-12-08 14:38 Sascha Wilde
2006-12-08 15:04 ` Robert Thorpe
0 siblings, 1 reply; 4+ messages in thread
From: Sascha Wilde @ 2006-12-08 14:38 UTC (permalink / raw)
Hi *,
the (not too uncommon) situation is this:
- I'm editing a file
- the file is changed by someone (or something) else on disk
- I want to safe my changes and emacs asks if I want to overwrite the
changes on disk
now I would like to make a diff and merge between my version and the
version on disk, but I can't find a straight forward way top do this,
without writing a temporary file.
Am I missing something?
cheers
sascha
--
Sascha Wilde
I've always figured UNIX is a utility to be run under emacs.
-- Charles R. Martin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ediff between buffer and corresponding (changed) file
2006-12-08 14:38 ediff between buffer and corresponding (changed) file Sascha Wilde
@ 2006-12-08 15:04 ` Robert Thorpe
2006-12-08 16:19 ` Sascha Wilde
0 siblings, 1 reply; 4+ messages in thread
From: Robert Thorpe @ 2006-12-08 15:04 UTC (permalink / raw)
Sascha Wilde wrote:
> Hi *,
>
> the (not too uncommon) situation is this:
>
> - I'm editing a file
> - the file is changed by someone (or something) else on disk
> - I want to safe my changes and emacs asks if I want to overwrite the
> changes on disk
>
> now I would like to make a diff and merge between my version and the
> version on disk, but I can't find a straight forward way top do this,
> without writing a temporary file.
>
> Am I missing something?
It is a recent addition, which can be added by inserting some elisp.
See this thread:-
http://groups.google.co.uk/group/gnu.emacs.help/browse_frm/thread/ee86853ef6243e5f/3b7bdaedebb77c2e?lnk=st&q=ediff+buffer+underlying+file+emacs&rnum=1#3b7bdaedebb77c2e
Message-ID: <m2odtujmix.fsf@janus.isnogud.escape.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ediff between buffer and corresponding (changed) file
2006-12-08 15:04 ` Robert Thorpe
@ 2006-12-08 16:19 ` Sascha Wilde
2006-12-08 16:33 ` Robert Thorpe
0 siblings, 1 reply; 4+ messages in thread
From: Sascha Wilde @ 2006-12-08 16:19 UTC (permalink / raw)
"Robert Thorpe" <rthorpe@realworldtech.com> wrote:
> Sascha Wilde wrote:
>> - I'm editing a file
>> - the file is changed by someone (or something) else on disk
>> - I want to safe my changes and emacs asks if I want to overwrite the
>> changes on disk
>>
>> now I would like to make a diff and merge between my version and the
>> version on disk, but I can't find a straight forward way top do this,
>> without writing a temporary file.
>
> It is a recent addition, which can be added by inserting some elisp.
> See this thread:-
> http://groups.google.co.uk/group/gnu.emacs.help/browse_frm/thread/ee86853ef6243e5f/3b7bdaedebb77c2e?lnk=st&q=ediff+buffer+underlying+file+emacs&rnum=1#3b7bdaedebb77c2e
> Message-ID: <m2odtujmix.fsf@janus.isnogud.escape.de>
Thanks. diff-buffer-with-file is indeed neat, but I would like a
ediff version much better, as it allows for not only seeing the
changes but merging, too.
cheers
sascha
--
Sascha Wilde : "GUIs normally make it simple to accomplish simple
: actions and impossible to accomplish complex actions."
: (Doug Gwyn - 22/Jun/91 in comp.unix.wizards)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ediff between buffer and corresponding (changed) file
2006-12-08 16:19 ` Sascha Wilde
@ 2006-12-08 16:33 ` Robert Thorpe
0 siblings, 0 replies; 4+ messages in thread
From: Robert Thorpe @ 2006-12-08 16:33 UTC (permalink / raw)
Sascha Wilde wrote:
> "Robert Thorpe" <rthorpe@realworldtech.com> wrote:
> > Sascha Wilde wrote:
> >> - I'm editing a file
> >> - the file is changed by someone (or something) else on disk
> >> - I want to safe my changes and emacs asks if I want to overwrite the
> >> changes on disk
> >>
> >> now I would like to make a diff and merge between my version and the
> >> version on disk, but I can't find a straight forward way top do this,
> >> without writing a temporary file.
> >
> > It is a recent addition, which can be added by inserting some elisp.
> > See this thread:-
> > http://groups.google.co.uk/group/gnu.emacs.help/browse_frm/thread/ee86853ef6243e5f/3b7bdaedebb77c2e?lnk=st&q=ediff+buffer+underlying+file+emacs&rnum=1#3b7bdaedebb77c2e
> > Message-ID: <m2odtujmix.fsf@janus.isnogud.escape.de>
>
> Thanks. diff-buffer-with-file is indeed neat, but I would like a
> ediff version much better, as it allows for not only seeing the
> changes but merging, too.
Changing the line (diff buffer-file-name tempfile nil t) to
(ediff-files buffer-file-name tempfile) should do it, but it won't give
you merge. You will have to manually save the tempfile by a different
name.
Has anyone expanded ediff to give this functionality?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-12-08 16:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 14:38 ediff between buffer and corresponding (changed) file Sascha Wilde
2006-12-08 15:04 ` Robert Thorpe
2006-12-08 16:19 ` Sascha Wilde
2006-12-08 16:33 ` Robert Thorpe
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).