From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: vc-*-root finctions Date: Fri, 22 Feb 2008 11:50:58 -0500 Message-ID: References: <87skzn3mq9.fsf@ambire.localdomain> <87mypvxzd2.fsf@ambire.localdomain> <87pruqxqw8.fsf@ambire.localdomain> <8763wh3utv.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203699094 2432 80.91.229.12 (22 Feb 2008 16:51:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Feb 2008 16:51:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thien-Thi Nguyen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 22 17:51:58 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 1JSb7b-0001JV-Oz for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 17:51:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSb76-0004X7-HV for ged-emacs-devel@m.gmane.org; Fri, 22 Feb 2008 11:51:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JSb71-0004TE-AX for emacs-devel@gnu.org; Fri, 22 Feb 2008 11:51:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JSb6y-0004P1-Ac for emacs-devel@gnu.org; Fri, 22 Feb 2008 11:51:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JSb6y-0004Ow-6x for emacs-devel@gnu.org; Fri, 22 Feb 2008 11:51:00 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JSb6x-0003oy-To for emacs-devel@gnu.org; Fri, 22 Feb 2008 11:51:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAMqLvkfO+J2cdGdsb2JhbACQYAEwnmeBAQ X-IronPort-AV: E=Sophos;i="4.25,392,1199682000"; d="scan'208";a="14849720" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 22 Feb 2008 11:50:59 -0500 Original-Received: from pastel.home ([206.248.157.156]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id CSU14459; Fri, 22 Feb 2008 11:50:59 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id B15E08A37; Fri, 22 Feb 2008 11:50:58 -0500 (EST) In-Reply-To: <8763wh3utv.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Fri, 22 Feb 2008 15:54:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:89985 Archived-At: > Rather, the feature is to present the line: > Directory: ~/build/GNU/git-emacs/lisp/calendar > with "git-emacs", "lisp" and "calendar" as buttons. If i want to > do `(vc-status "~/build/GNU")', then presenting "GNU" as plain > (non-button) text tells me -- even before i try -- that according > to vc-git-root, that directory is not in the same project i am in > at the moment. The buttons, on the other hand, tell me -- again, > even before i try -- that those directories are in-project. I understand that. But why should VC care if it's in the same project or not? The user will know that just fine. So just highlight the button if VC can do something with it, and don't highlight it if it can't. Look 'ma: no need for the vc-FOO-root functions. Stefan