Function: vc-position-context

vc-position-context is a byte-compiled function defined in vc-dispatcher.el.gz.

Signature

(vc-position-context POSN)

Documentation

Save a bit of the text around POSN in the current buffer.

Used to help us find the corresponding position again later if markers are destroyed or corrupted.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-dispatcher.el.gz
(defun vc-position-context (posn)
  "Save a bit of the text around POSN in the current buffer.
Used to help us find the corresponding position again later
if markers are destroyed or corrupted."
  ;; A lot of this was shamelessly lifted from Sebastian Kremer's
  ;; rcs.el mode.
  (list posn
	(buffer-size)
	(buffer-substring posn
			  (min (point-max) (+ posn 100)))))