GNU bug report logs - #6148
add ability to hide unregistered files in vc-dir

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Mon, 10 May 2010 01:04:02 UTC

Severity: wishlist

Tags: patch

Merged with 12159

Found in version 24.1.50

Fixed in version 24.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6148 in the body.
You can then email your comments to 6148 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6148; Package emacs. (Mon, 10 May 2010 01:04:02 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: add ability to hide unregistered files in vc-dir
Date: Sun, 09 May 2010 21:03:39 -0400
Package: emacs
Severity: wishlist

I would find the ability to hide unregistered files in vc-dir useful;
but this might be something specific to my usage.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6148; Package emacs. (Mon, 10 May 2010 11:31:02 GMT) Full text and rfc822 format available.

Message #6 received at 6148 <at> debbugs.gnu.org (full text, mbox):

From: Magnus Henoch <magnus.henoch <at> gmail.com>
To: 6148 <at> debbugs.gnu.org
Subject: Re: bug#6148: add ability to hide unregistered files in vc-dir
Date: Mon, 10 May 2010 12:30:26 +0100
This piece of code has been in my .emacs for a while:

(defun my-vc-dir-hide-some (states)
  "Hide files whose state is in STATES."
  (interactive
   (list
    (progn
      (unless vc-ewoc
	(error "Not in a vc-dir buffer"))
      (mapcar 'intern
	      (completing-read-multiple
	       "Hide files that are in state(s): "
	       (let (possible-states)
		 (ewoc-map (lambda (item)
			     (let ((state (vc-dir-fileinfo->state item)))
			       (when state
				 (pushnew state possible-states))
			       nil))
			   vc-ewoc)
		 (mapcar 'symbol-name possible-states))
	       nil t)))))
  (let ((inhibit-read-only t))
    (ewoc-filter vc-ewoc
		 (lambda (file)
		   (not (memq (vc-dir-fileinfo->state file) states))))))
(eval-after-load "vc-dir"
  '(define-key vc-dir-mode-map "H" 'my-vc-dir-hide-some))

-- 
Magnus Henoch




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6148; Package emacs. (Mon, 17 May 2010 20:53:02 GMT) Full text and rfc822 format available.

Message #9 received at 6148 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Magnus Henoch <magnus.henoch <at> gmail.com>
Cc: 6148 <at> debbugs.gnu.org
Subject: Re: bug#6148: add ability to hide unregistered files in vc-dir
Date: Mon, 17 May 2010 16:52:47 -0400
Magnus Henoch wrote:

> This piece of code has been in my .emacs for a while:

Thanks. I'll use the interactive piece of that (minus cl pushnew) with
a version of vc-dir-hide-up-to-date that has an optional STATES
argument in place of a hard-coded 'up-to-date. That hides directories
when they are no longer relevant.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6148; Package emacs. (Wed, 11 Apr 2012 14:48:01 GMT) Full text and rfc822 format available.

Message #12 received at 6148 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 6148 <at> debbugs.gnu.org
Subject: Re: bug#6148: add ability to hide unregistered files in vc-dir
Date: Wed, 11 Apr 2012 16:45:40 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> I would find the ability to hide unregistered files in vc-dir useful;
> but this might be something specific to my usage.

Yes, I'd love that.  I'd also like a "delete all unregistered files"
command, but that might be just me.  :-)

> Thanks. I'll use the interactive piece of that (minus cl pushnew) with
> a version of vc-dir-hide-up-to-date that has an optional STATES
> argument in place of a hard-coded 'up-to-date. That hides directories
> when they are no longer relevant.

This didn't make it into trunk, I guess?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Forcibly Merged 6148 12159. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 08 Aug 2012 18:33:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.3, send any further explanations to 6148 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 14 Aug 2012 06:50:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 11 Sep 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 279 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.