Function: vc-cvs-mode-line-string
vc-cvs-mode-line-string is a byte-compiled function defined in
vc-cvs.el.gz.
Signature
(vc-cvs-mode-line-string FILE)
Documentation
Return a string for vc-mode-line to put in the mode line for FILE.
Compared to the default implementation, this function does two things: Handle the special case of a CVS file that is added but not yet committed and support display of sticky tags.
Source Code
;; Defined in /usr/src/emacs/lisp/vc/vc-cvs.el.gz
(defun vc-cvs-mode-line-string (file)
"Return a string for `vc-mode-line' to put in the mode line for FILE.
Compared to the default implementation, this function does two things:
Handle the special case of a CVS file that is added but not yet
committed and support display of sticky tags."
(let* ((sticky-tag (vc-file-getprop file 'vc-cvs-sticky-tag))
help-echo
(string
(let ((def-ml (vc-default-mode-line-string 'CVS file)))
(setq help-echo
(get-text-property 0 'help-echo def-ml))
def-ml)))
(propertize
(if (zerop (length sticky-tag))
string
(setq help-echo (format-message "%s on the `%s' branch"
help-echo sticky-tag))
(concat string "[" sticky-tag "]"))
'help-echo help-echo)))