GNU bug report logs -
#18788
24.4; vc-git-working-revision vs mode-line gives error
Previous Next
Reported by: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
Date: Wed, 22 Oct 2014 08:33:01 UTC
Severity: normal
Tags: moreinfo
Found in version 24.4
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Kevin Brubeck Unhammer <unhammer <at> fsfe.org> writes:
> Whenever I try to save a git-registered file under emacs 24.4, I get
>
> apply: Args out of range: #("Git@" 0 4 (help-echo "Locally added
> file under the Git version control system")), 0, 7
I don't see that.
Does that happen in a bare session (started with `emacs -Q')?
Is there anything special about the repository, or its current local state?
> The function vc-git-mode-line-string tries to get the revision using
> vc-working-revision, which returns nil. Instead of checking the `rev'
> variable for nil, it checks `detached', before calling substring. It
> should probably do
>
> (if (and detached rev)
> (substring …)
> …)
>
> instead. I don't know why vc-working-revision returns nil though
> (there's a whole lot of indirection to dig through there).
Does (vc-git-working-revision buffer-file-name) return nil in the same buffer?
This bug report was last modified 9 years and 207 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.