unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* vc in emacs problem with git
@ 2009-08-27 15:28 Rustom Mody
  2009-08-27 16:14 ` Rustom Mody
       [not found] ` <mailman.5535.1251389685.2239.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Rustom Mody @ 2009-08-27 15:28 UTC (permalink / raw)
  To: help-gnu-emacs, Git Mailing List

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
  2009-08-27 15:28 vc in emacs problem with git Rustom Mody
@ 2009-08-27 16:14 ` Rustom Mody
  2009-08-27 17:45   ` Tassilo Horn
  2009-08-29 18:41   ` Junio C Hamano
       [not found] ` <mailman.5535.1251389685.2239.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 10+ messages in thread
From: Rustom Mody @ 2009-08-27 16:14 UTC (permalink / raw)
  To: help-gnu-emacs, Git Mailing List

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.
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
  2009-08-27 16:14 ` Rustom Mody
@ 2009-08-27 17:45   ` Tassilo Horn
  2009-08-29 18:41   ` Junio C Hamano
  1 sibling, 0 replies; 10+ messages in thread
From: Tassilo Horn @ 2009-08-27 17:45 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: git

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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
       [not found] ` <mailman.5535.1251389685.2239.help-gnu-emacs@gnu.org>
@ 2009-08-27 21:10   ` Anselm Helbig
  2009-08-28  5:43     ` rustom
  0 siblings, 1 reply; 10+ messages in thread
From: Anselm Helbig @ 2009-08-27 21:10 UTC (permalink / raw)
  To: help-gnu-emacs

At Thu, 27 Aug 2009 21:44:33 +0530,
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?

I had a similar problem. The cause was an old git.el I had lying
around. You should check if vc-git works when you turn off all
customization, i.e. with emacs -Q. Another possible source of old git
support files might be your OS. Debian and friends automatically
install git support for emacs along with the git package. Loading it
is disabled here for Emacs 23, though (Ubuntu Jaunty).

HTH, 

Anselm



-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
  2009-08-27 21:10   ` Anselm Helbig
@ 2009-08-28  5:43     ` rustom
  2009-08-28  7:31       ` Anselm Helbig
  0 siblings, 1 reply; 10+ messages in thread
From: rustom @ 2009-08-28  5:43 UTC (permalink / raw)
  To: help-gnu-emacs

On Aug 28, 2:10 am, Anselm Helbig <anselm.helbig
+news2...@googlemail.com> wrote:
> At Thu, 27 Aug 2009 21:44:33 +0530,
>
> Rustom Mody <rustompm...@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?
>
> I had a similar problem. The cause was an old git.el I had lying
> around. You should check if vc-git works when you turn off all
> customization, i.e. with emacs -Q. Another possible source of old git
> support files might be your OS. Debian and friends automatically
> install git support for emacs along with the git package. Loading it
> is disabled here for Emacs 23, though (Ubuntu Jaunty).
>
> HTH,
>
> Anselm
>
> --
> Anselm Helbig
> mailto:anselm.helbig+news2...@googlemail.com

Thanks! That tracked it --that is vc works with emacs -Q and fails
without.
But now how to track where the problem is?
I can hardly use emacs with -Q !!


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
  2009-08-28  5:43     ` rustom
@ 2009-08-28  7:31       ` Anselm Helbig
  2009-08-28  8:18         ` Tassilo Horn
       [not found]         ` <mailman.5567.1251447544.2239.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Anselm Helbig @ 2009-08-28  7:31 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1446 bytes --]

At Thu, 27 Aug 2009 22:43:46 -0700 (PDT),
rustom <rustompmody@gmail.com> wrote:
> 
> On Aug 28, 2:10 am, Anselm Helbig <anselm.helbig
> +news2...@googlemail.com> wrote:
> > At Thu, 27 Aug 2009 21:44:33 +0530,
> >
> > Rustom Mody <rustompm...@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?
> >
> > I had a similar problem. The cause was an old git.el I had lying
> > around. You should check if vc-git works when you turn off all
> > customization, i.e. with emacs -Q. Another possible source of old git
> > support files might be your OS. Debian and friends automatically
> > install git support for emacs along with the git package. Loading it
> > is disabled here for Emacs 23, though (Ubuntu Jaunty).
> >
> > HTH,
> >
> > Anselm
> >
> > --
> > Anselm Helbig
> > mailto:anselm.helbig+news2...@googlemail.com
> 
> Thanks! That tracked it --that is vc works with emacs -Q and fails
> without.
> But now how to track where the problem is?
> I can hardly use emacs with -Q !!

Well, try emacs -q (no .emacs loading) and emacs --no-site-file (no
loading of site-specific customizations). What does 

  M-x locate-library vc-git

give you?




-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
  2009-08-28  7:31       ` Anselm Helbig
@ 2009-08-28  8:18         ` Tassilo Horn
       [not found]         ` <mailman.5567.1251447544.2239.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Tassilo Horn @ 2009-08-28  8:18 UTC (permalink / raw)
  To: help-gnu-emacs

Anselm Helbig <anselm.helbig+news2009@googlemail.com> writes:

Hi!

>> Thanks! That tracked it --that is vc works with emacs -Q and fails
>> without.
>> But now how to track where the problem is?
>> I can hardly use emacs with -Q !!
>
> Well, try emacs -q (no .emacs loading) and emacs --no-site-file (no
> loading of site-specific customizations). What does 
>
>   M-x locate-library vc-git
>
> give you?

And also check `M-x list-load-path-shadows' to find which external elisp
files shadow emacs builtins.

Bye,
Tassilo





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
       [not found]         ` <mailman.5567.1251447544.2239.help-gnu-emacs@gnu.org>
@ 2009-08-29 14:31           ` rustom
  0 siblings, 0 replies; 10+ messages in thread
From: rustom @ 2009-08-29 14:31 UTC (permalink / raw)
  To: help-gnu-emacs

On Aug 28, 1:18 pm, Tassilo Horn <tass...@member.fsf.org> wrote:
> Anselm Helbig <anselm.helbig+news2...@googlemail.com> writes:
>
> Hi!
>
> >> Thanks! That tracked it --that is vc works with emacs -Q and fails
> >> without.
> >> But now how to track where the problem is?
> >> I can hardly use emacs with -Q !!
>
> > Well, try emacs -q (no .emacs loading) and emacs --no-site-file (no
> > loading of site-specific customizations). What does
>
> >   M-x locate-library vc-git
>
> > give you?
>
> And also check `M-x list-load-path-shadows' to find which external elisp
> files shadow emacs builtins.
>
> Bye,
> Tassilo

Thanks Anselm & Tassilo
The specific info from Anselm -- checkout vc-git.el -- helped me track
the culprit. I had been trying it earlier; it neither worked and also
evidently broke the working vc. When I renamed it out of the way the
problem (seems) to have gone.

But Tassilo's method is the way of tracking down such problems in the
first place so thanks.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
  2009-08-27 16:14 ` Rustom Mody
  2009-08-27 17:45   ` Tassilo Horn
@ 2009-08-29 18:41   ` Junio C Hamano
  2009-08-30  8:54     ` Rustom Mody
  1 sibling, 1 reply; 10+ messages in thread
From: Junio C Hamano @ 2009-08-29 18:41 UTC (permalink / raw)
  To: Rustom Mody; +Cc: help-gnu-emacs, Git Mailing List

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?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: vc in emacs problem with git
  2009-08-29 18:41   ` Junio C Hamano
@ 2009-08-30  8:54     ` Rustom Mody
  0 siblings, 0 replies; 10+ messages in thread
From: Rustom Mody @ 2009-08-30  8:54 UTC (permalink / raw)
  To: help-gnu-emacs, Git Mailing List

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-08-30  8:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27 15:28 vc in emacs problem with git Rustom Mody
2009-08-27 16:14 ` Rustom Mody
2009-08-27 17:45   ` Tassilo Horn
2009-08-29 18:41   ` Junio C Hamano
2009-08-30  8:54     ` Rustom Mody
     [not found] ` <mailman.5535.1251389685.2239.help-gnu-emacs@gnu.org>
2009-08-27 21:10   ` Anselm Helbig
2009-08-28  5:43     ` rustom
2009-08-28  7:31       ` Anselm Helbig
2009-08-28  8:18         ` Tassilo Horn
     [not found]         ` <mailman.5567.1251447544.2239.help-gnu-emacs@gnu.org>
2009-08-29 14:31           ` rustom

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).