File: vc-hooks.el.html
This is the preloaded portion of VC. It takes care of VC-related activities that are done when you visit a file, so that vc.el itself is loaded only when you use a VC command. See commentary of vc.el.
The noninteractive hooks into the rest of Emacs are:
- vc-refresh-state in find-file-hook
- vc-kill-buffer-hook in kill-buffer-hook
- vc-after-save which is called by basic-save-buffer
- vc-after-revert in after-revert-hook.
Defined variables (14)
vc-auto-revert-mode | Non-nil if Vc-Auto-Revert mode is enabled. |
vc-auto-revert-mode-hook | Hook run after entering or leaving ‘vc-auto-revert-mode’. |
vc-consult-headers | If non-nil, identify work files by searching for version headers. |
vc-dir-buffers | List of ‘vc-dir’ buffers. |
vc-directory-exclusion-list | List of directory names to be ignored when walking directory trees. |
vc-display-status | If non-nil, display revision number and lock status in mode line. |
vc-file-prop-obarray | Obarray for VC per-file and per-repository properties. |
vc-follow-symlinks | What to do if visiting a symbolic link to a file under version control. |
vc-handled-backends | List of version control backends for which VC will be used. |
vc-ignore-dir-regexp | Regexp matching directory names that are not under VC’s control. |
vc-make-backup-files | If non-nil, backups of registered files are made as with other files. |
vc-resolve-conflicts | Whether to mark conflicted file as resolved upon saving. |
vc-use-incoming-outgoing-prefixes | Whether C-x v I and C-x v O are prefix commands. |
vc-use-short-revision | If non-nil, VC backend functions should return short revisions if possible. |
Defined functions (48)
Defined faces (10)
vc-conflict-state | Face for VC modeline state when the file contains merge conflicts. |
vc-edited-state | Face for VC modeline state when the file is edited. |
vc-ignored-state | Face for VC modeline state when the file is registered, but ignored. |
vc-locally-added-state | Face for VC modeline state when the file is locally added. |
vc-locked-state | Face for VC modeline state when the file locked. |
vc-missing-state | Face for VC modeline state when the file is missing from the file system. |
vc-needs-update-state | Face for VC modeline state when the file needs update. |
vc-removed-state | Face for VC modeline state when the file was removed from the VC system. |
vc-state-base | Base face for VC state indicator. |
vc-up-to-date-state | Face for VC modeline state when the file is up to date. |