GNU bug report logs - #19297
25.0.50; `C-c C-a' does not do the right thing from the trunk root

Previous Next

Package: emacs;

Reported by: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Date: Sun, 7 Dec 2014 19:55:01 UTC

Severity: normal

Tags: notabug

Found in version 25.0.50

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 19297 <at> debbugs.gnu.org
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 14:07:19 -0500
>> 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)))

Why not use this energy to actually fix the underlying bug (i.e. write
code similar to the above but to compute the list of files passed to
the Log-Edit mode).


        Stefan




This bug report was last modified 10 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.