all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: 2652@emacsbugs.donarmstrong.com, Miles Bader <miles@gnu.org>
Subject: bug#2652: 23.0.91; wacky behavior of "v" command in *vc-dir*  buffer
Date: Mon, 23 Mar 2009 13:34:11 -0400	[thread overview]
Message-ID: <jwvab7c6tif.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <200903231637.n2NGbmvo010899@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Mon, 23 Mar 2009 09:37:48 -0700 (PDT)")

>> > But I don't really want to check it in at this point without an explicit
>> > request from Stefan.
>> Removing calls to determine the backend (and replace them with backend
>> info propagated from elsewhere) is generally a good thing.

> How about this one?

Doesn't look too bad, tho "backend-arg" rings pretty poorly.  I think
this hints at the need to just use a single `backend' var (moved out of
the let into the arg) which is then defaulted via (unless backend (setq
backend (vc-backend file))).

> It removes an extra vc-backend call for each VC managed file.

Good.  Note that the issue is not performance but semantics: in most/all
of those cases, the behavior would be at best odd if the recomputed
backend were different from the caller's idea.

> And another one could be eliminated, but I am not 100% sure what this
> comment means:
>       ;; Let the backend setup any buffer-local things he needs.
>       (vc-call-backend (vc-backend buffer-file-name) 'find-file-hook))

The comment just means "run a hook so the backend can set things up".
Grep for "vc-.*-find-file-hook" to see for what it is currently used.
So yes, this should just use `backend' (which I'd prefer over `bk').


        Stefan






  reply	other threads:[~2009-03-23 17:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-12 23:58 bug#2652: 23.0.91; wacky behavior of "v" command in *vc-dir* buffer Miles Bader
2009-03-13  0:38 ` Dan Nicolaescu
2009-03-13  1:05   ` Miles Bader
2009-03-13  1:06     ` Miles Bader
2009-03-13  1:34     ` Dan Nicolaescu
2009-03-13  1:50       ` Miles Bader
2009-03-13  2:49         ` Miles Bader
2009-03-13  2:59           ` Miles Bader
2009-03-13  7:27             ` Dan Nicolaescu
2009-03-13  7:49               ` Miles Bader
2009-03-13 15:31                 ` Dan Nicolaescu
2009-03-13 16:22                 ` Dan Nicolaescu
2009-03-14 16:03                   ` Dan Nicolaescu
2009-03-15  2:09                     ` Stefan Monnier
2009-03-15  9:07                       ` Dan Nicolaescu
2009-03-23 16:37                       ` Dan Nicolaescu
2009-03-23 17:34                         ` Stefan Monnier [this message]
2009-04-13 17:02                       ` Dan Nicolaescu
2009-04-13 18:03                         ` Stefan Monnier
2009-03-15  2:30                     ` Miles Bader
2009-03-15  9:05                 ` Dan Nicolaescu

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=jwvab7c6tif.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=2652@emacsbugs.donarmstrong.com \
    --cc=dann@ics.uci.edu \
    --cc=miles@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.