unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Óscar Fuentes" <ofv@wanadoo.es>, emacs-devel@gnu.org
Subject: Re: VC and bzr.
Date: Fri, 23 Apr 2010 10:32:11 -0400	[thread overview]
Message-ID: <jwv7hnytfiz.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83zl0u3726.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Apr 2010 11:29:53 +0300")

> Until and unless this is fixed, I think we should stop using "bzr
> status" for accessing VC-related information when we do file I/O.

There is code to parse the Bzr data "manually", so at least when opening
a file, we should be able to get the Bzr status info without
running Bzr.

> Or maybe we should access it lazily (it's not that seeing the
> up-to-date revno in the mode line is such a crucial feature), or
> somehow access it en masse, then cache it.

The revno is not important, indeed (maybe we should even stop
displaying it since it uses up precious modeline estate).

It's not the only info, tho:
- we also check&display whether or not the file is under Bzr control.
- we check&display whether it's locally edited or not.
- we run some hooks depending on the backend which may turn on smerge-mode

Note that with the proliferation of backends there is some pressure to
reduce the amount of work done per-backend when visiting a file.
So maybe we should completely stop checking the VC state when visiting
a file, and only do it when the user invokes VC.  This will mean that
the VC status won't appear in the modeline any more (or we could set it
up "in the background") and that we can't easily enable smerge-mode when
there are conflicts (unless we scan each and every file for diff3
markers).


        Stefan





  reply	other threads:[~2010-04-23 14:32 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21 18:37 VC and bzr Jan Djärv
2010-04-21 20:38 ` Dan Nicolaescu
2010-04-21 22:19 ` Andreas Schwab
2010-04-22  5:26   ` Jan Djärv
2010-04-22  8:56     ` Andreas Schwab
2010-04-22  9:45       ` Jan D.
2010-04-22 10:26         ` Andreas Schwab
2010-04-22 11:56           ` Jan D.
2010-04-22 11:58             ` Jan D.
2010-04-22 13:24               ` Andreas Schwab
2010-04-22 13:21             ` Andreas Schwab
2010-04-22 13:32               ` Óscar Fuentes
2010-04-22 13:51                 ` Andreas Schwab
2010-04-22 14:26                   ` Óscar Fuentes
2010-04-22 14:38                     ` Andreas Schwab
2010-04-22 14:58                       ` Óscar Fuentes
2010-04-22 16:06                         ` Andreas Schwab
2010-04-22 16:52                           ` Óscar Fuentes
2010-04-22 18:58                             ` Eli Zaretskii
2010-04-22 19:31                               ` Óscar Fuentes
2010-04-22 20:54                                 ` Eli Zaretskii
2010-04-22 21:34                                 ` Stefan Monnier
2010-04-22 22:18                                   ` Óscar Fuentes
2010-04-23  1:34                                     ` Stefan Monnier
2010-04-23  2:18                                       ` Óscar Fuentes
2010-04-23  8:29                                         ` Eli Zaretskii
2010-04-23 14:32                                           ` Stefan Monnier [this message]
2010-04-23 14:43                                             ` Óscar Fuentes
2010-04-23 15:36                                               ` Eli Zaretskii
2010-04-23 16:54                                                 ` Davis Herring
2010-04-23 21:34                                                   ` Dan Nicolaescu
2010-04-25 20:18                                                     ` Davis Herring
2010-04-25 21:20                                                       ` Dan Nicolaescu
2010-04-23 20:31                                                 ` Óscar Fuentes
2010-04-23 20:43                                                   ` Eli Zaretskii
2010-04-23 21:13                                                     ` Dan Nicolaescu
2010-04-23 21:16                                                     ` Óscar Fuentes
2010-04-23 22:21                                                     ` Juanma Barranquero
2010-04-22 19:10                             ` Andreas Schwab
2010-04-22 19:47                               ` Óscar Fuentes
2010-04-22 21:40                                 ` Andreas Schwab
2010-04-22 14:18               ` Jan D.
2010-04-22 14:39                 ` Andreas Schwab

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwv7hnytfiz.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /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 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).