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

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

Re: Automatically viewing diffs while composing changes with vc-mode


From: Tassilo Horn
Subject: Re: Automatically viewing diffs while composing changes with vc-mode
Date: Thu, 26 Nov 2009 21:27:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Matthew Dempsky <matthew@dempsky.org> writes:

Hi Matthew,

> Whenever I'm composing a changelog entry for vc-mode, I like to be
> able to view the corresponding diff.  Currently, after I use 'C-x v v'
> to create the *VC-Log* buffer, I immediately press 'C-c C-d' to open
> the *VC-Diff* buffer.

This is untestested but could work:

(defadvice vc-next-action (after th-show-diff activate)
  (log-edit-show-diff))

> Then after entering my changelog entry and committing with 'C-c C-c',
> I always immediately close the *VC-Diff* buffer.

Again untested:

(add-hook 'log-edit-done-hook (lambda () (bury-buffer "*VC-Diff*")))

Bye,
Tassilo


reply via email to

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