]> git.eshelyaron.com Git - emacs.git/commit
Refactor 'vc-default-mode-line-string' (bug#66464)
authorJuri Linkov <juri@linkov.net>
Mon, 16 Oct 2023 17:14:18 +0000 (20:14 +0300)
committerJuri Linkov <juri@linkov.net>
Mon, 16 Oct 2023 17:14:18 +0000 (20:14 +0300)
commit5827d179fb71e6fdcc63a17eb50305545ede2f37
treeda71d5d675471b1b8e75cae35a3921cf29616082
parent484fc70a7acc5a958bfeefa4b83255680c7da175
Refactor 'vc-default-mode-line-string' (bug#66464)

* lisp/vc/vc-hooks.el (vc-mode-line-state): New function with code moved from
'vc-default-mode-line-string'.
(vc-default-mode-line-string): Use 'vc-mode-line-state'.

* lisp/vc/vc-git.el (vc-git-mode-line-string): Use
'vc-mode-line-state' instead of hacking the string returned from
'vc-default-mode-line-string'.

* lisp/vc/vc-hg.el (vc-hg-mode-line-string): Use
'vc-mode-line-state' instead of duplicating code from
'vc-default-mode-line-string'.
lisp/vc/vc-git.el
lisp/vc/vc-hg.el
lisp/vc/vc-hooks.el