Function: eglot--track-changes-fetch

eglot--track-changes-fetch is a byte-compiled function defined in eglot.el.gz.

Signature

(eglot--track-changes-fetch ID)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defun eglot--track-changes-fetch (id)
  (if (eq eglot--recent-changes :pending) (setq eglot--recent-changes nil))
  (track-changes-fetch
   id (lambda (beg end before)
        (cl-incf eglot--versioned-identifier)
        (cond
         ((eq eglot--recent-changes :emacs-messup) nil)
         ((eq before 'error) (setf eglot--recent-changes :emacs-messup))
         (t (push `(,(eglot--pos-to-lsp-position beg)
                    ,(eglot--virtual-pos-to-lsp-position beg before)
                    ,(length before)
                    ,(buffer-substring-no-properties beg end))
                  eglot--recent-changes))))))