Function: vcursor-get-char-count

vcursor-get-char-count is a byte-compiled function defined in vcursor.el.gz.

Signature

(vcursor-get-char-count FUNC &rest ARGS)

Documentation

Apply FUNC to ARGS ... and return the number of characters moved.

Point is temporarily set to the virtual cursor position before FUNC is called.

This is called by most of the virtual-cursor copying commands to find out how much to copy.

Source Code

;; Defined in /usr/src/emacs/lisp/vcursor.el.gz
(defun vcursor-get-char-count (func &rest args)
  "Apply FUNC to ARGS ... and return the number of characters moved.
Point is temporarily set to the virtual cursor position before FUNC
is called.

This is called by most of the virtual-cursor copying commands to find
out how much to copy."
  (vcursor-check)
  (with-current-buffer (overlay-buffer vcursor-overlay)
    (save-excursion
      (let ((start (goto-char (overlay-start vcursor-overlay))))
        (- (progn (apply func args) (point)) start)))))