Function: vc-annotate-display

vc-annotate-display is a byte-compiled function defined in vc-annotate.el.gz.

Signature

(vc-annotate-display RATIO &optional OFFSET)

Documentation

Highlight vc-annotate output in the current buffer.

RATIO is the expansion that should be applied to vc-annotate-color-map. The annotations are relative to the current time, unless overridden by OFFSET.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-annotate.el.gz
(defun vc-annotate-display (ratio &optional offset)
  "Highlight `vc-annotate' output in the current buffer.
RATIO is the expansion that should be applied to `vc-annotate-color-map'.
The annotations are relative to the current time, unless overridden by OFFSET."
  (when (/= ratio 1.0)
    (setq-local vc-annotate-color-map
	 (mapcar (lambda (elem) (cons (* (car elem) ratio) (cdr elem)))
		 vc-annotate-color-map)))
  (setq-local vc-annotate-offset offset)
  (font-lock-mode 1))