From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: Passing flags using vc-do-command Date: Thu, 10 Mar 2011 13:58:26 +0000 Message-ID: References: <87lj0qstpw.fsf@speer.lan> <87lj0oyfar.fsf@speer.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299765772 22590 80.91.229.12 (10 Mar 2011 14:02:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2011 14:02:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 10 15:02:46 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PxgRy-00086V-E2 for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2011 15:02:46 +0100 Original-Received: from localhost ([127.0.0.1]:45241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxgRx-00035r-Ie for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2011 09:02:45 -0500 Original-Received: from [140.186.70.92] (port=53131 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxgO3-0001jm-AH for emacs-devel@gnu.org; Thu, 10 Mar 2011 08:58:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxgO2-0004J6-Fq for emacs-devel@gnu.org; Thu, 10 Mar 2011 08:58:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:53556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxgO2-0004I6-A9 for emacs-devel@gnu.org; Thu, 10 Mar 2011 08:58:42 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PxgNz-00067P-PF for emacs-devel@gnu.org; Thu, 10 Mar 2011 14:58:39 +0100 Original-Received: from 193.34.186.16 ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2011 14:58:39 +0100 Original-Received: from andrewjmoreton by 193.34.186.16 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2011 14:58:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.34.186.16 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:JVI9/DbNMMbKgyZwrTyWKn00Bmk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137033 Archived-At: On Wed 09 Mar 2011, Stefan Monnier wrote: >>>> If not, what would be the best way to remedy the situation? >>> Don't use vc-do-command and use process-file or >>> start-file-process directly. >> That way, I would have to duplicate a considerable amount of the >> functionality of vc-do-command. > > Another option is to pass nil for the file-or-list argument. > >> What about adding a more versatile version of vc-do-command that >> accepts after-flags as well as before-flags and implement the current >> vc-do-command using that? I could implement it and send in a patch. > > That could work as well. > > > Stefan I think that vc-hg-command does something similar - perhaps it could be generalised to enhance vc-do-command ? AndyM