{"thread":{"id":"20754","subject":"vc in emacs problem with git","startedAt":"2009-08-27T15:28:43Z","lastAt":"2009-08-30T08:54:07Z","messageCount":6,"participants":["Rustom Mody","Tassilo Horn","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"121867","messageId":"f46c52560908270828o574c0de6s17189a7326a1376d@mail.gmail.com","threadId":"20754","inReplyTo":null,"subject":"vc in emacs problem with git","fromName":"Rustom Mody","fromEmail":"rustompmody@gmail.com","sentAt":"2009-08-27T15:28:43Z","receivedAt":"2009-08-27T15:28:43Z","isPatch":false,"sender":{"key":"rustompmody@gmail.com","avatar":null},"body":"This is emacs 23 using the new 'updated-for-modern-dvcs' vc\nI see a mode line saying (note the colon)\nGit:master\n\nIn the info on vc (Version control and the mode line) the emacs manual says:\n\n  The character between the back-end name and the revision ID\nindicates the version control status of the file.  `-' means that the\nwork file is not locked (if locking is in use), or not modified (if\nlocking is not in use).  `:' indicates that the file is locked, or that\nit is modified.\n\nHowever at the shell a git status says\n# On branch master\nnothing to commit (working directory clean)\n\nIf I close and reopen the file the colon becomes a -\nBut I get a message:\n\n`working-revision' not found: using the old `workfile-version' instead.\n"},{"id":"121872","messageId":"f46c52560908270914o7027dc0bo873544dc0687cc48@mail.gmail.com","threadId":"20754","inReplyTo":"f46c52560908270828o574c0de6s17189a7326a1376d@mail.gmail.com","subject":"Re: vc in emacs problem with git","fromName":"Rustom Mody","fromEmail":"rustompmody@gmail.com","sentAt":"2009-08-27T16:14:33Z","receivedAt":"2009-08-27T16:14:33Z","isPatch":false,"sender":{"key":"rustompmody@gmail.com","avatar":null},"body":"Just updating my own question:\nwhen I do a C-x v v (vc-next-action)\nwhich is supposed to be the most basic operation for checking in a file I get\n\n Wrong type argument: stringp, nil\n\nSo vc can be assumed to be a broken I guess?\n\nOn Thu, Aug 27, 2009 at 8:58 PM, Rustom Mody<rustompmody@gmail.com> wrote:\n> This is emacs 23 using the new 'updated-for-modern-dvcs' vc\n> I see a mode line saying (note the colon)\n> Git:master\n>\n> In the info on vc (Version control and the mode line) the emacs manual says:\n>\n>   The character between the back-end name and the revision ID\n> indicates the version control status of the file.  `-' means that the\n> work file is not locked (if locking is in use), or not modified (if\n> locking is not in use).  `:' indicates that the file is locked, or that\n> it is modified.\n>\n> However at the shell a git status says\n> # On branch master\n> nothing to commit (working directory clean)\n>\n> If I close and reopen the file the colon becomes a -\n> But I get a message:\n>\n> `working-revision' not found: using the old `workfile-version' instead.\n>\n"},{"id":"121886","messageId":"87hbvtxi9d.fsf@thinkpad.tsdh.de","threadId":"20754","inReplyTo":"f46c52560908270914o7027dc0bo873544dc0687cc48@mail.gmail.com","subject":"Re: vc in emacs problem with git","fromName":"Tassilo Horn","fromEmail":"tassilo@member.fsf.org","sentAt":"2009-08-27T17:45:50Z","receivedAt":"2009-08-27T17:45:50Z","isPatch":false,"sender":{"key":"tassilo@member.fsf.org","avatar":null},"body":"Rustom Mody <rustompmody@gmail.com> writes:\n\nHi Rustom,\n\n> Just updating my own question:\n> when I do a C-x v v (vc-next-action)\n> which is supposed to be the most basic operation for checking in a file I get\n>\n>  Wrong type argument: stringp, nil\n>\n> So vc can be assumed to be a broken I guess?\n\nHm, please do `M-x toggle-debug-on-error', reproduce the error and poste\nthe backtrace.\n\nBye,\nTassilo\n"},{"id":"122086","messageId":"f46c52560908290737r53e0732o2b552665f9c07098@mail.gmail.com","threadId":"20754","inReplyTo":"f46c52560908270914o7027dc0bo873544dc0687cc48@mail.gmail.com","subject":"Re: vc in emacs problem with git","fromName":"Rustom Mody","fromEmail":"rustompmody@gmail.com","sentAt":"2009-08-29T14:37:52Z","receivedAt":"2009-08-29T14:37:52Z","isPatch":false,"sender":{"key":"rustompmody@gmail.com","avatar":null},"body":"On Thu, Aug 27, 2009 at 9:44 PM, Rustom Mody<rustompmody@gmail.com> wrote:\n> Just updating my own question:\n> when I do a C-x v v (vc-next-action)\n> which is supposed to be the most basic operation for checking in a file I get\n>\n>  Wrong type argument: stringp, nil\n>\n> So vc can be assumed to be a broken I guess?\n\nAnswering my own question:\nShort answer: vc-git.el from git breaks vc in emacs\nLong answer: see emacs mailing list discussion\n http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/657d9c58baed7b0f#\n"},{"id":"122087","messageId":"7viqg65up7.fsf@alter.siamese.dyndns.org","threadId":"20754","inReplyTo":"f46c52560908270914o7027dc0bo873544dc0687cc48@mail.gmail.com","subject":"Re: vc in emacs problem with git","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-08-29T18:41:24Z","receivedAt":"2009-08-29T18:41:24Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Rustom Mody <rustompmody@gmail.com> writes:\n\n> Just updating my own question:\n> when I do a C-x v v (vc-next-action)\n> which is supposed to be the most basic operation for checking in a file I get\n>\n>  Wrong type argument: stringp, nil\n>\n> So vc can be assumed to be a broken I guess?\n\nHave you checked contrib/emacs/README?\n"},{"id":"122104","messageId":"f46c52560908300154k7496167l552348075cb52537@mail.gmail.com","threadId":"20754","inReplyTo":"7viqg65up7.fsf@alter.siamese.dyndns.org","subject":"Re: vc in emacs problem with git","fromName":"Rustom Mody","fromEmail":"rustompmody@gmail.com","sentAt":"2009-08-30T08:54:07Z","receivedAt":"2009-08-30T08:54:07Z","isPatch":false,"sender":{"key":"rustompmody@gmail.com","avatar":null},"body":"On Sun, Aug 30, 2009 at 12:11 AM, Junio C Hamano<gitster@pobox.com> wrote:\n> Rustom Mody <rustompmody@gmail.com> writes:\n>\n>> Just updating my own question:\n>> when I do a C-x v v (vc-next-action)\n>> which is supposed to be the most basic operation for checking in a file I get\n>>\n>>  Wrong type argument: stringp, nil\n>>\n>> So vc can be assumed to be a broken I guess?\n>\n> Have you checked contrib/emacs/README?\n> --\n\nSorry Junio I should have checked.\n\nActually I had earlier checked.\nThen I tried many emacs-git options, none of which worked.\nThen I upgraded my emacs to 23 in which the vc is upgraded for dvses like git.\nTime passed and I forgot what I had found, made worse by the fact that\nsometimes I'm on windows and sometimes on linux and the 'working'\nstatus of different things is quite different.\n\nHowever the point is that I was not loading the older vc-git.el at\nall. emacs was getting the wrong one.\nIt may be better if vc were hardened so that it gets its own vc-*.els\nin preference to random stuff lying on the load-path.\n"}]}