Subject: bug#21404: closed (Re: bug#21404: 25.0.50; vc git mode-line 'font property cut off)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 03 Sep 2015 12:38:02 +0000

Your bug report

#21404: 25.0.50; vc git mode-line 'font property cut off

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 [email-masked].

-- 
21404: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21404
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#21404: 25.0.50; vc git mode-line 'font property cut off
From: Dmitry Gutov <[email-masked]>
To: Mark Oteiza <[email-masked]>, [email-masked]
Date: Thu, 3 Sep 2015 15:37:35 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

On 09/03/2015 08:18 AM, Mark Oteiza wrote:

> So, only "Git-" is given the face, instead of the whole "Git-master"

Sorry about that, I didn't test it in vanilla Emacs.

Should be fixed now.

Subject: 25.0.50; vc git mode-line 'font property cut off
From: Mark Oteiza <[email-masked]>
To: [email-masked]
Date: Thu, 03 Sep 2015 01:18:22 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

The following commit

http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=21d6414a4

breaks fontification of the vc git mode line string.

  (vc-default-mode-line-string 'Git "~/foo/bar")
  => #("Git-a071fefe36be6069f5b66467767b9e88c73a5bf6" 0 44 (help-echo "Up to date file under the Git version control system" face vc-up-to-date-state))

  (replace-regexp-in-string
   (concat "a071fefe36be6069f5b66467767b9e88c73a5bf6" "\\'")
   "master"
   (vc-default-mode-line-string 'Git "~/.zshenv")
   t t)
  => #("Git-master" 0 4 (help-echo "Up to date file under the Git version control system" face vc-up-to-date-state))

So, only "Git-" is given the face, instead of the whole "Git-master"