unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* vc-ediff and how to get rid of version buffers
@ 2013-03-31 23:53 Rodrigo Amestica
  0 siblings, 0 replies; only message in thread
From: Rodrigo Amestica @ 2013-03-31 23:53 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

in a vc-dir buffer I would like vc-ediff behavior to be such that after done
with the diff then I would like to be automatically brought back to the
vc-dir buffer and the two buffers associated to both revisions I just compared
to be gone (killed).

If in ediff-vc-internal I add the code shown below (right before calling
edit-buffers) then I get the behavior I just described.

Is it there a less intrusive way to accomplish the task? Some hook I missed? 

thanks,
 Rodrigo

emacs 24.2.1

(add-hook 'ediff-after-quit-hook-internal
          `(lambda ()
             (kill-buffer ,rev1buf)
             (kill-buffer ,rev2buf)))




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-03-31 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-31 23:53 vc-ediff and how to get rid of version buffers Rodrigo Amestica

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).