[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19297: 25.0.50; `C-c C-a' does not do the right thing from the trunk
From: |
Lars Magne Ingebrigtsen |
Subject: |
bug#19297: 25.0.50; `C-c C-a' does not do the right thing from the trunk root |
Date: |
Mon, 08 Dec 2014 19:16:18 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Clearly changes to "." shouldn't go into lisp/ChangeLog, so there's no
> point looking for them in lisp/ChangeLog. So you can work around this
> problem by marking those files you want to commit rather than just
> committing "everything that's changed".
Eek. Manual labour!
I hacked up this beautiful, beautiful function instead:
(global-set-key
[(hyper e)]
(lambda ()
(interactive)
(save-some-buffers t)
(when (get-buffer "*vc-dir*")
(kill-buffer (get-buffer "*vc-dir*")))
(vc-dir "~/src/emacs/trunk")
(goto-char (point-min))
(while (not (search-forward "edited" nil t))
(sit-for 0.01))
(beginning-of-line)
(while (search-forward "edited" nil t)
(vc-dir-mark)
(beginning-of-line))
(vc-diff nil)
(other-window 1)))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no