(vc-name): Avoid calling vc-backend twice.
authorDan Nicolaescu <dann@ics.uci.edu>
Wed, 1 Apr 2009 15:42:09 +0000 (15:42 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Wed, 1 Apr 2009 15:42:09 +0000 (15:42 +0000)
commit32ca5ee4f7ef217724fb3ad0836ef88959f1ba08
treef1852417a06cfc0a578a935527f65a19242d5eb9
parentfd211f0b3c67e1840fe3dc0ea3904064cdbc9440
(vc-name): Avoid calling vc-backend twice.
(vc-mode-line): Accept and use an optional argument for the
backend.
(vc-find-file-hook): Use when instead of if.  Avoid calling
vc-backend multiple times, pass down the value computed the first
time.
lisp/ChangeLog
lisp/vc-hooks.el