unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 12153@debbugs.gnu.org
Subject: bug#12153: 24.1.50; vc-checkin fails when buffers of files doesn't exist.
Date: Wed, 08 Aug 2012 08:40:12 +0200	[thread overview]
Message-ID: <87fw7xlwdv.fsf@gmail.com> (raw)
In-Reply-To: <b48vdqd74q.fsf@fencepost.gnu.org> (Glenn Morris's message of "Tue, 07 Aug 2012 12:00:37 -0400")

Glenn Morris <rgm@gnu.org> writes:

> Thierry Volpiatto wrote:
>
>> trying to use `vc-checkin' from lisp, I found that it is not usable when
>> the buffers of the files I want to commit are not present.
>> This is due I think to the concept of `with-vc-properties' that need
>> some buffer properties to get info on files (there is a note about this in
>> the definition of `vc-checkin').
>
> I don't understand why you think this is a bug.
One should be able to do:
(let ((default-directory some_directory))
  (vc-checkin files backend))


> Why not just ensure the buffers exist, if that is what the function
> requires?
It is not to me to check and manage this but to vc-checkin. 
Thus, even if I do that myself, I hit another problem when trying to
commit a file when another file have been deleted and is registered as
deleted.

>> I understand that when commiting changes vc can expect the buffer of the
>> modified file is present, but when adding new files, this may not be
>> true.
>
> But obviously you can make it true. I've committed new files many times
> from VC with no problem.
Me too, I know vc is working in its context.

>> Also when an eshell buffer is present, vc ask about this buffer, which
>> is wrong (but that's maybe another bug).
>
> Sounds like.
Don't know what that's mean.

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 





  reply	other threads:[~2012-08-08  6:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-07  9:30 bug#12153: 24.1.50; vc-checkin fails when buffers of files doesn't exist Thierry Volpiatto
2012-08-07 16:00 ` Glenn Morris
2012-08-08  6:40   ` Thierry Volpiatto [this message]
2021-07-15 20:44 ` Lars Ingebrigtsen
2021-08-13 12:36   ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87fw7xlwdv.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=12153@debbugs.gnu.org \
    --cc=rgm@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).