GNU bug report logs - #26309
24.4; vc-git-register doesn't run interactively

Previous Next

Package: emacs;

Reported by: Łukasz Stelmach <l.stelmach <at> samsung.com>

Date: Thu, 30 Mar 2017 13:06:01 UTC

Severity: wishlist

Found in version 24.4

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

Bug is archived. No further changes may be made.

Full log


Message #32 received at 26309 <at> debbugs.gnu.org (full text, mbox):

From: Thien-Thi Nguyen <ttn <at> gnu.org>
To: 26309 <at> debbugs.gnu.org
Subject: Re: bug#26309: 24.4; vc-git-register doesn't run interactively
Date: Fri, 31 Mar 2017 14:12:06 +0200
[Message part 1 (text/plain, inline)]
() Dmitry Gutov <dgutov <at> yandex.ru>
() Thu, 30 Mar 2017 19:31:35 +0300

   Creating a command that calls vc-git-register should be trivial.

Yes.  For example, here's what i bind to ‘C-x v i’:

(defun more-vc-register-dwim (&optional fname)
  "Like `vc-register' but if FNAME is already under Git, do a \"git add\"."
  (interactive)
  (unless fname (setq fname buffer-file-name))
  (if (and (eq 'Git (vc-backend fname))
            (vc-registered fname))
      (vc-git-command nil 0 fname "add")
    (call-interactively 'vc-register)))

-- 
Thien-Thi Nguyen -----------------------------------------------
 (defun responsep (query)
   (pcase (context query)
     (`(technical ,ml) (correctp ml))
     ...))                              748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502

[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 5 years and 314 days ago.

Previous Next


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