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-git] Showing =?utf-8?b?4oCYLmdpdC8q4oCZ?= files in vc-dir Date: Thu, 01 Jul 2010 11:34:30 -0400 Message-ID: References: <4C2A5279.2080706@cybersprocket.com> <4C2C4573.1060203@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277998512 2225 80.91.229.12 (1 Jul 2010 15:35:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 15:35:12 +0000 (UTC) Cc: Eric James Michael Ritz , Jan =?iso-8859-1?Q?Dj=E4rv?= , Stefan Monnier , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 01 17:35:10 2010 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 1OULn6-0004YZ-KX for ged-emacs-devel@m.gmane.org; Thu, 01 Jul 2010 17:35:07 +0200 Original-Received: from localhost ([127.0.0.1]:60078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OULn1-0006js-Ug for ged-emacs-devel@m.gmane.org; Thu, 01 Jul 2010 11:35:00 -0400 Original-Received: from [199.232.76.173] (port=59483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OULmq-0006ie-9S for emacs-devel@gnu.org; Thu, 01 Jul 2010 11:34:48 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OULmo-0007t9-QG for emacs-devel@gnu.org; Thu, 01 Jul 2010 11:34:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:45610) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OULml-0007sk-5w for emacs-devel@gnu.org; Thu, 01 Jul 2010 11:34:46 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OULmY-0005MN-Sq; Thu, 01 Jul 2010 11:34:30 -0400 In-Reply-To: (Glenn Morris's message of "Thu\, 01 Jul 2010 04\:39\:24 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:126627 Archived-At: Glenn Morris writes: > Dan Nicolaescu wrote: > >>> How about a command and a defcustom to set the default that filters >>> out unregistered files in vc-dir? >> >> If someone first shows a clean design and UI for it, sure. >> It could be bound to C-u x. > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6148 I somehow missed that. > It is trivial to modify vc-dir-hide-up-to-date to accept an optional > STATES argument in place of a hard-coded 'up-to-date. The change may be trivial to code, but as I said, I'd like to see a clean design first. What happens when you run another vc-dir, should the same type of files be hidden again? Should the user be able to say: I never want to see unregistered files. (or some other type???) > Then I just use the interactive piece from the posted code, and bind > it to H, as suggested. I'd like to avoid taking another key if possible. > I use this all the time, for exactly the purpose of hiding > unregistered files. It would be nice to have a more generic solution, if one is needed. Someone needs to think about it and justify one way or another.