[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5910: vc-hooks enhancement request: highlight checkouts
From: |
Lars Ingebrigtsen |
Subject: |
bug#5910: vc-hooks enhancement request: highlight checkouts |
Date: |
Sat, 19 Sep 2020 23:38:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Albert Ting <altlist@gmail.com> writes:
> In any case, I'd like to quest the vc auto-highlight any files that have been
> modified/checkout in the vc-mode-line. XEmacs supports this and below is a
> patch
> to make it work in Emacs.
>
> Thanks,
> Albert
>
> --- vc-hooks.el~ 2010-04-08 12:33:24.016321000 -0700
> +++ vc-hooks.el 2010-03-30 08:06:06.570204000 -0700
> @@ -772,7 +772,10 @@
> (if (not backend)
> (setq vc-mode nil)
> (let* ((ml-string (vc-call-backend backend 'mode-line-string file))
> - (ml-echo (get-text-property 0 'help-echo ml-string)))
> + (ml-echo (get-text-property 0 'help-echo ml-string))
> + (test-str "^\\(RCS\\|CVS\\|SVN\\|SCCS\\|Arch\\|MCVS\\|GIT\\):")
> + (locked (string-match test-str ml-string))
This patch unfortunately got no attention when it was posted ten years
ago.
I see that this has been fixed over the years in a different way --
vc-up-to-date-state (etc) is added by the vc-*-mode-line-string backend
functions themselves, so I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#5910: vc-hooks enhancement request: highlight checkouts,
Lars Ingebrigtsen <=