From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs 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 Message-ID: <87fw7xlwdv.fsf@gmail.com> References: <87393zdp7q.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344408070 4247 80.91.229.3 (8 Aug 2012 06:41:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Aug 2012 06:41:10 +0000 (UTC) Cc: 12153@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 08 08:41:09 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Syzx4-0008HB-DF for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Aug 2012 08:41:06 +0200 Original-Received: from localhost ([::1]:43258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syzx3-0005qD-Nj for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Aug 2012 02:41:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syzx0-0005py-FF for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2012 02:41:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Syzwz-0005tF-Gg for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2012 02:41:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Syzwz-0005tB-Cm for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2012 02:41:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sz04k-0003Or-L7 for bug-gnu-emacs@gnu.org; Wed, 08 Aug 2012 02:49:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Aug 2012 06:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12153 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 12153-submit@debbugs.gnu.org id=B12153.134440851113029 (code B ref 12153); Wed, 08 Aug 2012 06:49:02 +0000 Original-Received: (at 12153) by debbugs.gnu.org; 8 Aug 2012 06:48:31 +0000 Original-Received: from localhost ([127.0.0.1]:40943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sz04E-0003O4-6V for submit@debbugs.gnu.org; Wed, 08 Aug 2012 02:48:31 -0400 Original-Received: from mail-wg0-f46.google.com ([74.125.82.46]:36556) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sz049-0003Nu-AZ for 12153@debbugs.gnu.org; Wed, 08 Aug 2012 02:48:26 -0400 Original-Received: by wgbdq10 with SMTP id dq10so322559wgb.15 for <12153@debbugs.gnu.org>; Tue, 07 Aug 2012 23:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=IlHBnxeXcq/ztOaRPMaNxnGjH/lY9rLzUmglzTSZkOg=; b=fWxnLgujYi8sASRD5LJKFruG80avGQYgj1xpWvYp5BYDbIdCo3TVkB8ouU4ZRDYytm IlrvhHF5tloOcRNhkGkdL6QGqrrspGWcNTYkoS0qMii/KuClaHY8jLnawFHUx+ueGCGd R6/riKuC+caQM/cRfAtUWC6y/BX8/MdjQJMe3hEzLoWM1qj9FWOObZ60hFPFSwPiotVT tnxBwUd6nmF5y39HdIgxUKMnWnbrhsmGWUPSu57g0ivrZmJlYK3K2E/Kc4c6i6MtfgAF pgwShR8nUDxJv0fIgg4bLa5IzPD9F3q5x/t+YXsr2EoJ5DwGHSKccEd31yFv5kKHF5Bu 6Afw== Original-Received: by 10.216.136.230 with SMTP id w80mr1139150wei.199.1344408021988; Tue, 07 Aug 2012 23:40:21 -0700 (PDT) Original-Received: from thierry-MM061 (lbe83-2-78-243-104-167.fbx.proxad.net. [78.243.104.167]) by mx.google.com with ESMTPS id fb20sm5287742wid.1.2012.08.07.23.40.19 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Aug 2012 23:40:20 -0700 (PDT) In-Reply-To: (Glenn Morris's message of "Tue, 07 Aug 2012 12:00:37 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62930 Archived-At: Glenn Morris 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