# vc in emacs problem with git

6 messages from 2009-08-27 to 2009-08-30. Participants: Rustom Mody, Tassilo Horn, Junio C Hamano.
Thread: https://gitlist.dev/t/20754

## Rustom Mody, 2009-08-27 15:28

Subject: vc in emacs problem with git
Message-ID: <f46c52560908270828o574c0de6s17189a7326a1376d@mail.gmail.com>
URL: https://gitlist.dev/e/f46c52560908270828o574c0de6s17189a7326a1376d%40mail.gmail.com

```
This is emacs 23 using the new 'updated-for-modern-dvcs' vc
I see a mode line saying (note the colon)
Git:master

In the info on vc (Version control and the mode line) the emacs manual says:

  The character between the back-end name and the revision ID
indicates the version control status of the file.  `-' means that the
work file is not locked (if locking is in use), or not modified (if
locking is not in use).  `:' indicates that the file is locked, or that
it is modified.

However at the shell a git status says
# On branch master
nothing to commit (working directory clean)

If I close and reopen the file the colon becomes a -
But I get a message:

`working-revision' not found: using the old `workfile-version' instead.

```

## Rustom Mody, 2009-08-27 16:14

Subject: Re: vc in emacs problem with git
Message-ID: <f46c52560908270914o7027dc0bo873544dc0687cc48@mail.gmail.com>
URL: https://gitlist.dev/e/f46c52560908270914o7027dc0bo873544dc0687cc48%40mail.gmail.com
In-Reply-To: <f46c52560908270828o574c0de6s17189a7326a1376d@mail.gmail.com>

```
Just updating my own question:
when I do a C-x v v (vc-next-action)
which is supposed to be the most basic operation for checking in a file I get

 Wrong type argument: stringp, nil

So vc can be assumed to be a broken I guess?

On Thu, Aug 27, 2009 at 8:58 PM, Rustom Mody<rustompmody@gmail.com> wrote:
> This is emacs 23 using the new 'updated-for-modern-dvcs' vc
> I see a mode line saying (note the colon)
> Git:master
>
> In the info on vc (Version control and the mode line) the emacs manual says:
>
>   The character between the back-end name and the revision ID
> indicates the version control status of the file.  `-' means that the
> work file is not locked (if locking is in use), or not modified (if
> locking is not in use).  `:' indicates that the file is locked, or that
> it is modified.
>
> However at the shell a git status says
> # On branch master
> nothing to commit (working directory clean)
>
> If I close and reopen the file the colon becomes a -
> But I get a message:
>
> `working-revision' not found: using the old `workfile-version' instead.
>

```

## Tassilo Horn, 2009-08-27 17:45

Subject: Re: vc in emacs problem with git
Message-ID: <87hbvtxi9d.fsf@thinkpad.tsdh.de>
URL: https://gitlist.dev/e/87hbvtxi9d.fsf%40thinkpad.tsdh.de
In-Reply-To: <f46c52560908270914o7027dc0bo873544dc0687cc48@mail.gmail.com>

```
Rustom Mody <rustompmody@gmail.com> writes:

Hi Rustom,

> Just updating my own question:
> when I do a C-x v v (vc-next-action)
> which is supposed to be the most basic operation for checking in a file I get
>
>  Wrong type argument: stringp, nil
>
> So vc can be assumed to be a broken I guess?

Hm, please do `M-x toggle-debug-on-error', reproduce the error and poste
the backtrace.

Bye,
Tassilo

```

## Rustom Mody, 2009-08-29 14:37

Subject: Re: vc in emacs problem with git
Message-ID: <f46c52560908290737r53e0732o2b552665f9c07098@mail.gmail.com>
URL: https://gitlist.dev/e/f46c52560908290737r53e0732o2b552665f9c07098%40mail.gmail.com
In-Reply-To: <f46c52560908270914o7027dc0bo873544dc0687cc48@mail.gmail.com>

```
On Thu, Aug 27, 2009 at 9:44 PM, Rustom Mody<rustompmody@gmail.com> wrote:
> Just updating my own question:
> when I do a C-x v v (vc-next-action)
> which is supposed to be the most basic operation for checking in a file I get
>
>  Wrong type argument: stringp, nil
>
> So vc can be assumed to be a broken I guess?

Answering my own question:
Short answer: vc-git.el from git breaks vc in emacs
Long answer: see emacs mailing list discussion
 http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/657d9c58baed7b0f#

```

## Junio C Hamano, 2009-08-29 18:41

Subject: Re: vc in emacs problem with git
Message-ID: <7viqg65up7.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7viqg65up7.fsf%40alter.siamese.dyndns.org
In-Reply-To: <f46c52560908270914o7027dc0bo873544dc0687cc48@mail.gmail.com>

```
Rustom Mody <rustompmody@gmail.com> writes:

> Just updating my own question:
> when I do a C-x v v (vc-next-action)
> which is supposed to be the most basic operation for checking in a file I get
>
>  Wrong type argument: stringp, nil
>
> So vc can be assumed to be a broken I guess?

Have you checked contrib/emacs/README?

```

## Rustom Mody, 2009-08-30 08:54

Subject: Re: vc in emacs problem with git
Message-ID: <f46c52560908300154k7496167l552348075cb52537@mail.gmail.com>
URL: https://gitlist.dev/e/f46c52560908300154k7496167l552348075cb52537%40mail.gmail.com
In-Reply-To: <7viqg65up7.fsf@alter.siamese.dyndns.org>

```
On Sun, Aug 30, 2009 at 12:11 AM, Junio C Hamano<gitster@pobox.com> wrote:
> Rustom Mody <rustompmody@gmail.com> writes:
>
>> Just updating my own question:
>> when I do a C-x v v (vc-next-action)
>> which is supposed to be the most basic operation for checking in a file I get
>>
>>  Wrong type argument: stringp, nil
>>
>> So vc can be assumed to be a broken I guess?
>
> Have you checked contrib/emacs/README?
> --

Sorry Junio I should have checked.

Actually I had earlier checked.
Then I tried many emacs-git options, none of which worked.
Then I upgraded my emacs to 23 in which the vc is upgraded for dvses like git.
Time passed and I forgot what I had found, made worse by the fact that
sometimes I'm on windows and sometimes on linux and the 'working'
status of different things is quite different.

However the point is that I was not loading the older vc-git.el at
all. emacs was getting the wrong one.
It may be better if vc were hardened so that it gets its own vc-*.els
in preference to random stuff lying on the load-path.

```
