GNU bug report logs - #23344
25.0.93; (vc-call-backend 'Git 'mode-line-string default-directory)

Previous Next

Package: emacs;

Reported by: Leo Liu <sdl.web <at> gmail.com>

Date: Sat, 23 Apr 2016 14:33:02 UTC

Severity: normal

Found in version 25.0.93

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Leo Liu <sdl.web <at> gmail.com>
Subject: bug#23344: closed (Re: bug#23344: 25.0.93; (vc-call-backend 'Git
 'mode-line-string default-directory))
Date: Sat, 23 Apr 2016 19:23:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#23344: 25.0.93; (vc-call-backend 'Git 'mode-line-string default-directory)

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 23344 <at> debbugs.gnu.org.

-- 
23344: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23344
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Leo Liu <sdl.web <at> gmail.com>, 23344-done <at> debbugs.gnu.org
Subject: Re: bug#23344: 25.0.93; (vc-call-backend 'Git 'mode-line-string
 default-directory)
Date: Sat, 23 Apr 2016 22:22:19 +0300
Hi Leo,

On 04/23/2016 05:32 PM, Leo Liu wrote:

> 1. Open a directory under git in dired and eval
> 2. (progn (vc-file-clearprops default-directory)
>           (vc-call-backend 'Git 'mode-line-string default-directory))
> 3. observe the odd string: "Git-04030c40afcef0b9b41fd79ad094c4a7d2c2cc27master"

Thanks for the report. I've fixed it in 87ee542.

Is there a particular place where you're calling `mode-line-string' on a 
directory, though?

The return value in this case is poorly defined, because the string 
includes a character indicator of the current VC state of FILE, and the 
VC API doesn't define VC states for directories.

[Message part 3 (message/rfc822, inline)]
From: Leo Liu <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.93; (vc-call-backend 'Git 'mode-line-string default-directory)
Date: Sat, 23 Apr 2016 22:32:31 +0800
1. Open a directory under git in dired and eval
2. (progn (vc-file-clearprops default-directory)
          (vc-call-backend 'Git 'mode-line-string default-directory))
3. observe the odd string: "Git-04030c40afcef0b9b41fd79ad094c4a7d2c2cc27master"

Leo



This bug report was last modified 9 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.