Function: log-edit-new-comment-index

log-edit-new-comment-index is a byte-compiled function defined in log-edit.el.gz.

Signature

(log-edit-new-comment-index STRIDE LEN)

Documentation

Return the comment whose index is STRIDE elements away from the current one.

This accesses log-edit-comment-ring, which stores commit log comments, i.e. descriptions of changes done by commits. LEN is the length of log-edit-comment-ring.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/log-edit.el.gz
(defun log-edit-new-comment-index (stride len)
  "Return the comment whose index is STRIDE elements away from the current one.
This accesses `log-edit-comment-ring', which stores commit log comments,
i.e. descriptions of changes done by commits.
LEN is the length of `log-edit-comment-ring'."
  (mod (cond
	(log-edit-comment-ring-index (+ log-edit-comment-ring-index stride))
	;; Initialize the index on the first use of this command
	;; so that the first M-p gets index 0, and the first M-n gets
	;; index -1.
	((> stride 0) (1- stride))
	(t stride))
       len))