unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#3641: no antidote to vc-dir-hide-up-to-date
@ 2009-06-21 11:36 jidanni
  2011-03-02 11:18 ` bug#3641: please more info Mario Frasca
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: jidanni @ 2009-06-21 11:36 UTC (permalink / raw)
  To: bug-gnu-emacs

(info "(emacs) VC Directory Commands")
   `x' hides up-to-date files.
x runs the command vc-dir-hide-up-to-date, which is an interactive
   Hide up-to-date items from display.

OK, but how to then un-hide them back? the user wonders.

There should be a documented antidote function, or one to "show all
files, even boring ones."







^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#3641: please more info
  2009-06-21 11:36 bug#3641: no antidote to vc-dir-hide-up-to-date jidanni
@ 2011-03-02 11:18 ` Mario Frasca
  2011-07-05 20:39 ` bug#3641: Rename vc-dir-hide-up-to-date to vc-dir-toggle-up-to-date Bill Wohler
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Mario Frasca @ 2011-03-02 11:18 UTC (permalink / raw)
  To: 3641

I started using *svn-status* I found it a bit unfortunate that the key
bindings are not the same as *cvs* and that you can't have more than
one buffer at a time.  now I'm starting to contribute to a project
where they use mercurial, and I was looking for an emacs interface and
found *vc-dir*.

one thing, an important thing, I miss here is the possiblity to show
up-to-date files.

why is it filed as a "wish"?
it seems to me an important missing feature!

I tried to implement it myself, but I'm missing a function (I call it
here vc-dir-find-versioned-child-files) that gives me the list of the
files that are under version control.

(defun vc-dir-show-child-files ()
  "expand the directory under the cursor"
  (interactive)
  (let ((files (vc-dir-find-versioned-child-files (vc-dir-current-file)))
        fileentries)
    (when files
      (dolist (crt files)
        (push (list (file-relative-name crt) (vc-state crt))
              fileentries))
      (vc-dir-update fileentries (current-buffer)))))

see also http://stackoverflow.com/questions/5107266





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#3641: Rename vc-dir-hide-up-to-date to vc-dir-toggle-up-to-date
  2009-06-21 11:36 bug#3641: no antidote to vc-dir-hide-up-to-date jidanni
  2011-03-02 11:18 ` bug#3641: please more info Mario Frasca
@ 2011-07-05 20:39 ` Bill Wohler
  2011-07-06  0:45 ` Bill Wohler
  2019-10-13 19:54 ` bug#3641: no antidote to vc-dir-hide-up-to-date Lars Ingebrigtsen
  3 siblings, 0 replies; 6+ messages in thread
From: Bill Wohler @ 2011-07-05 20:39 UTC (permalink / raw)
  To: 3641

While this is strictly a feature request, it should have high priority
since it hobbles the utility of *vc-dir*. Most of the *vc-dir* commands
are appropriate and desirable for up-to-date files.

From a usability point of view, a toggle makes sense here.

Just curious: Why does vc-dir-hide-up-to-date even exist if that's the
hard-coded behavior?

-- 
Bill Wohler <wohler@newt.com> aka <Bill.Wohler@nasa.gov>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#3641: Rename vc-dir-hide-up-to-date to vc-dir-toggle-up-to-date
  2009-06-21 11:36 bug#3641: no antidote to vc-dir-hide-up-to-date jidanni
  2011-03-02 11:18 ` bug#3641: please more info Mario Frasca
  2011-07-05 20:39 ` bug#3641: Rename vc-dir-hide-up-to-date to vc-dir-toggle-up-to-date Bill Wohler
@ 2011-07-06  0:45 ` Bill Wohler
  2011-07-06 15:23   ` Dan Nicolaescu
  2019-10-13 19:54 ` bug#3641: no antidote to vc-dir-hide-up-to-date Lars Ingebrigtsen
  3 siblings, 1 reply; 6+ messages in thread
From: Bill Wohler @ 2011-07-06  0:45 UTC (permalink / raw)
  To: 3641

> From a usability point of view, a toggle makes sense here.

I'm thinking my initial name isn't very good. It should certainly be
vc-dir-toggle-something.

> Just curious: Why does vc-dir-hide-up-to-date even exist if that's the
> hard-coded behavior?

Just answered my own question. If you check in one or more files, they
will appear and be in the up-to-date state until you run x or g.

-- 
Bill Wohler <wohler@newt.com> aka <Bill.Wohler@nasa.gov>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#3641: Rename vc-dir-hide-up-to-date to vc-dir-toggle-up-to-date
  2011-07-06  0:45 ` Bill Wohler
@ 2011-07-06 15:23   ` Dan Nicolaescu
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Nicolaescu @ 2011-07-06 15:23 UTC (permalink / raw)
  To: Bill Wohler; +Cc: 3641

Bill Wohler <wohler@newt.com> writes:

>> From a usability point of view, a toggle makes sense here.
>
> I'm thinking my initial name isn't very good. It should certainly be
> vc-dir-toggle-something.
>
>> Just curious: Why does vc-dir-hide-up-to-date even exist if that's the
>> hard-coded behavior?
>
> Just answered my own question. If you check in one or more files, they
> will appear and be in the up-to-date state until you run x or g.

Right, so hiding the up to date entries is a matter of just looking at
the entry state and hiding it.
If vc-dir were to display all the up to date files, it would have to ask
the underlying VC system for the file list (or walk the directory tree
by itself...).  
Some VCS don't have a way to provide that.  For example it seems that
"bzr status" cannot do that.
Another problem is that on big trees it would take forever to get such a
file list.

Also after a VC operation vc-dir tries to update the state of all the
displayed items, if the list is too big, the display would take a long
time...

These are all potential problems, but what's missing is for someone to
implement the feature in at least one VC backend, play with it and tell
us how it works.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#3641: no antidote to vc-dir-hide-up-to-date
  2009-06-21 11:36 bug#3641: no antidote to vc-dir-hide-up-to-date jidanni
                   ` (2 preceding siblings ...)
  2011-07-06  0:45 ` Bill Wohler
@ 2019-10-13 19:54 ` Lars Ingebrigtsen
  3 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2019-10-13 19:54 UTC (permalink / raw)
  To: jidanni; +Cc: 3641

jidanni@jidanni.org writes:

> (info "(emacs) VC Directory Commands")
>    `x' hides up-to-date files.
> x runs the command vc-dir-hide-up-to-date, which is an interactive
>    Hide up-to-date items from display.
>
> OK, but how to then un-hide them back? the user wonders.
>
> There should be a documented antidote function, or one to "show all
> files, even boring ones."

Displaying all the files in a repo in the vc-dir buffer doesn't sound
like a very useful command to me, so I'm closing this bug report.

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-13 19:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-21 11:36 bug#3641: no antidote to vc-dir-hide-up-to-date jidanni
2011-03-02 11:18 ` bug#3641: please more info Mario Frasca
2011-07-05 20:39 ` bug#3641: Rename vc-dir-hide-up-to-date to vc-dir-toggle-up-to-date Bill Wohler
2011-07-06  0:45 ` Bill Wohler
2011-07-06 15:23   ` Dan Nicolaescu
2019-10-13 19:54 ` bug#3641: no antidote to vc-dir-hide-up-to-date Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).