all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: VC's modeline
Date: Tue, 09 Feb 2016 10:15:47 -0500	[thread overview]
Message-ID: <jwvmvr9diva.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 87zivax3li.fsf@wanadoo.es

>> What I think is wrong the level of detail expected in the status line.
>> E.g. I think it'd be fine for VC to just display "Bzr" (or "Hg", or
>> "Git", or what have you) instead.  I think it'd even be fine to do that
>> without checking whether the file is really under that VCS's control or
>> not (i.e. without checking whether the file is ignored).  IOW, a file
>> opened in a directory with a ".git" somewhere in the parents could just
>> say "Git", without any other check.
> Saying that the file is on a directory that also has a .git (or .bzr, or
> whatever) directory is almost meaningless.

It indicates which backend would be used if the user wants to perform
a VC operation.  E.g. for non-managed files, it'd indicate which backend
will be used for `C-x v i' (vc-register).

> You don't know if the file is actually versioned, nor if it is edited,

In my experience 99% of Emacs users have no idea that the ":" between
the backend name and the "version info" means that the file is
locally modified.

Of the remaining 1%, some (at least me; and I presume I'm not the only
one) never look at it and just use `C-x v =' to see what's changed.

So this info is not of very high value.

> nor the branch that is currently checked out (this last piece of
> information is specially important on workflows that uses
> colocated branches.)

That's occasionally useful in Git, indeed.  Luckily it's easy/cheap to
obtain this info in Git.

> Personally, I find having that information on the modeline a very worthy
> investment.  In practice, the only problem I experience is when working
> on MS Windows, where calling git is much slower than on GNU/Linux and it
> is annoying to wait until all buffers refreshes the VC info after some
> operation with Magit.

See, we do have a problem.  I'm not opposed to having refined info
available, but the current setup where this refined info is
"indispensable" and always needs to be computed eagerly is problematic.
We should arrange for those things to be computed more lazily (and
maybe for that we need to change the UI so it's also *displayed* more
lazily, e.g. only after the user does something).


        Stefan




  reply	other threads:[~2016-02-09 15:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160208185311.9470.7389@vcs.savannah.gnu.org>
     [not found] ` <E1aSqvv-0002TM-Vt@vcs.savannah.gnu.org>
2016-02-08 19:55   ` [Emacs-diffs] master de76a16: Performance improvements for vc-hg Stefan Monnier
2016-02-08 20:11     ` Daniel Colascione
2016-02-08 20:21       ` Eli Zaretskii
2016-02-08 20:28         ` Daniel Colascione
2016-02-08 21:01           ` Eli Zaretskii
2016-02-08 21:09             ` Daniel Colascione
2016-02-08 21:39           ` VC's modeline (was: [Emacs-diffs] master de76a16: Performance improvements for vc-hg) Stefan Monnier
2016-02-08 22:02             ` VC's modeline Óscar Fuentes
2016-02-09 15:15               ` Stefan Monnier [this message]
2016-02-09 17:13                 ` Óscar Fuentes
2016-02-10 15:16                   ` Stefan Monnier
2016-02-13 20:01                     ` Dmitry Gutov
2016-02-13  9:33                 ` Markus Triska
2016-02-08 23:29             ` Daniel Colascione
2016-02-13  9:35               ` Markus Triska

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmvr9diva.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.