all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
To: 26309@debbugs.gnu.org
Subject: bug#26309: 24.4; vc-git-register doesn't run interactively
Date: Fri, 31 Mar 2017 14:12:06 +0200	[thread overview]
Message-ID: <87wpb5lk6h.fsf@zigzag> (raw)
In-Reply-To: <ad2dbde5-4f5e-c940-ccde-d970469d7827@yandex.ru> (Dmitry Gutov's message of "Thu, 30 Mar 2017 19:31:35 +0300")

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]


() Dmitry Gutov <dgutov@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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2017-03-31 12:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170330130513eucas1p2ca60345aff5282dd8916971bee36bf1d@eucas1p2.samsung.com>
2017-03-30 13:05 ` bug#26309: 24.4; vc-git-register doesn't run interactively Łukasz Stelmach
2017-03-30 13:51   ` Noam Postavsky
     [not found]     ` <CGME20170330140455eucas1p1cd577c5a6a38095e7085f70c869ca064@eucas1p1.samsung.com>
2017-03-30 14:04       ` Łukasz Stelmach
2017-03-30 14:20         ` Andreas Schwab
     [not found]           ` <CGME20170330143109eucas1p2bbb6175dcc95b0d29ee1f4275466110c@eucas1p2.samsung.com>
2017-03-30 14:30             ` Łukasz Stelmach
2017-03-30 14:50               ` Noam Postavsky
     [not found]                 ` <CGME20170330150948eucas1p191eac45190f0a0afec1a8ffbbc36b9e7@eucas1p1.samsung.com>
2017-03-30 15:09                   ` Łukasz Stelmach
2017-03-30 16:31                     ` Dmitry Gutov
2017-03-31 12:12                       ` Thien-Thi Nguyen [this message]
2019-09-29 14:50                       ` Lars Ingebrigtsen
2017-03-30 18:43   ` bug#26309: [PATCH] (vc-git-register): register current file when called interactively Łukasz Stelmach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wpb5lk6h.fsf@zigzag \
    --to=ttn@gnu.org \
    --cc=26309@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.