Function: log-view-display-entry-and-diff

log-view-display-entry-and-diff is an interactive and byte-compiled function defined in log-view.el.gz.

Signature

(log-view-display-entry-and-diff)

Documentation

Expand current Log View entry, if possible, and also display its diff.

If the current Log View entry is already expanded, only display its diff; this command never collapses entries. In contrast with log-view-diff-changeset, the window displaying the diff is not selected. See also log-view-toggle-entry-display.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/vc/log-view.el.gz
(defun log-view-display-entry-and-diff ()
  "Expand current Log View entry, if possible, and also display its diff.
If the current Log View entry is already expanded, only display its
diff; this command never collapses entries.
In contrast with `log-view-diff-changeset', the window displaying the
diff is not selected.
See also `log-view-toggle-entry-display'."
  (interactive)
  (when-let* ((beg (car (log-view-current-entry))))
    (unless (get-text-property beg 'log-view-entry-expanded)
      (log-view-toggle-entry-display)))
  (save-selected-window
    (log-view-diff (point) (point))))