From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: VC Dired Mode doesn't support recursive directory? Date: Wed, 30 Jan 2008 15:23:21 -0800 Message-ID: <200801302323.m0UNNQVP008401@sallyv1.ics.uci.edu> References: <200801301559.m0UFxAWt014439@sallyv1.ics.uci.edu> <200801301800.m0UI02L2000460@sallyv1.ics.uci.edu> <200801301946.m0UJkeFM021693@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201735510 3606 80.91.229.12 (30 Jan 2008 23:25:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2008 23:25:10 +0000 (UTC) Cc: William Xu , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 31 00:25:30 2008 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.50) id 1JKMIx-0000CZ-3l for ged-emacs-devel@m.gmane.org; Thu, 31 Jan 2008 00:25:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKMIV-00028r-Sw for ged-emacs-devel@m.gmane.org; Wed, 30 Jan 2008 18:24:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKMIR-000271-5S for emacs-devel@gnu.org; Wed, 30 Jan 2008 18:24:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKMIP-000240-Dy for emacs-devel@gnu.org; Wed, 30 Jan 2008 18:24:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKMIO-00023Y-Rg for emacs-devel@gnu.org; Wed, 30 Jan 2008 18:24:44 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JKMIO-0007E8-Cu for emacs-devel@gnu.org; Wed, 30 Jan 2008 18:24:44 -0500 X-ICS-MailScanner-Watermark: 1202340212.17455@wRlEWoHUNNYhp5f+TI4gwQ Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m0UNNQVP008401; Wed, 30 Jan 2008 15:23:26 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Wed, 30 Jan 2008 16:36:40 -0500") Original-Lines: 36 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:87816 Archived-At: Stefan Monnier writes: > >> >> >> 1. M-x vc-directory gives me a list of changed files in current > >> >> >> directory and one sub directory. > >> >> >> > >> >> >> 2. I marked all files, then `v v', it prompts this in the minibuffer: > >> >> >> > >> >> >> ,---- > >> >> >> | All members of a fileset must be under the same version-control system. > >> >> >> `---- > >> >> > >> >> > Were some of the files that you selected unregistered? If yes, then the > >> >> > error you get is expected (although the wording could be improved to > >> >> > make it more clear). > >> >> > >> >> BTW, I think there's a fundamental error in VC's handling of backends, > >> >> right now: The backend should be a buffer-local property, not > >> >> a file-local property. > >> > >> > So what happens with files that are not in any buffer (like probably a > >> > lot of files that would appear in vc-dired)? > >> > >> Huh? If they're in vc-dired, they're in a buffer. > > > There seems to be a misunderstanding here. Why would the files be in a > > buffer? One can edit something, quit emacs and then 2 weeks later run > > vc-dired. It's possible that none of the files that vc-dired shows to > > be in a buffer. > > But any VC operation is run from a buffer. Either a file buffer or a VC > buffer. The backend to use should depend on the buffer, not on the (set > of) file(s). Well, for vc-dired different files can belong to different backends. If you are saying that its not a good idea, then we are in complete agreement.