Variable: vc-use-incoming-outgoing-prefixes

vc-use-incoming-outgoing-prefixes is a customizable variable defined in vc-hooks.el.gz.

Value

nil

Documentation

Whether \C-x v I and \C-x v O are prefix commands.

Historically Emacs bound \C-x v I and \C-x v O directly to commands. That is still the default. If this option is customized to non-nil, these key sequences becomes prefix commands. vc-log-incoming moves to \C-x v I L, vc-log-outgoing moves to \C-x v O L, and other commands receive global bindings where they had none before.

This variable was added, or its default value changed, in Emacs 31.1.

View in manual

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/vc-hooks.el.gz
(defcustom vc-use-incoming-outgoing-prefixes nil
  "Whether \\`C-x v I' and \\`C-x v O' are prefix commands.
Historically Emacs bound \\`C-x v I' and \\`C-x v O' directly to
commands.  That is still the default.  If this option is customized to
non-nil, these key sequences becomes prefix commands.  `vc-log-incoming'
moves to \\`C-x v I L', `vc-log-outgoing' moves to \\`C-x v O L', and
other commands receive global bindings where they had none before."
  :type 'boolean
  :version "31.1"
  :set (lambda (symbol value)
         (let ((maps (list vc-prefix-map)))
           (when (boundp 'vc-dir-mode-map)
             (push vc-dir-mode-map maps))
           (if value
               (dolist (map maps)
                 (keymap-set map "I" vc-incoming-prefix-map)
                 (keymap-set map "O" vc-outgoing-prefix-map))
             (dolist (map maps)
               (keymap-set map "I" #'vc-log-incoming)
               (keymap-set map "O" #'vc-log-outgoing))))
         (set-default symbol value)))