aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-26 18:04:03 +0200
committerEli Zaretskii2015-12-26 18:04:03 +0200
commit42ae568b3d187a42ead03d880efda076615e0d3a (patch)
treec10be0b559974b387674b91cca63c639a559a050
parentca13f61dea7030452848d455db7d3aba9e2e7a85 (diff)
downloademacs-42ae568b3d187a42ead03d880efda076615e0d3a.tar.gz
emacs-42ae568b3d187a42ead03d880efda076615e0d3a.zip
Document 'vc-annotate-background-mode'
* doc/emacs/maintaining.texi (Old Revisions): Document 'vc-annotate-background-mode'.
-rw-r--r--doc/emacs/maintaining.texi14
-rw-r--r--etc/NEWS1
2 files changed, 10 insertions, 5 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index 2d11b201d32..801d147845b 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -832,15 +832,19 @@ corresponding to @var{revision}, saves it to
832window. 832window.
833 833
834@findex vc-annotate 834@findex vc-annotate
835@vindex vc-annotate-background-mode
835@kindex C-x v g 836@kindex C-x v g
836 Many version control systems allow you to view files @dfn{annotated} 837 Many version control systems allow you to view files @dfn{annotated}
837with per-line revision information, by typing @kbd{C-x v g} 838with per-line revision information, by typing @kbd{C-x v g}
838(@code{vc-annotate}). This creates a new ``annotate'' buffer 839(@code{vc-annotate}). This creates a new ``annotate'' buffer
839displaying the file's text, with each line colored to show 840displaying the file's text, with each line colored to show how old it
840how old it is. Red text is new, blue is old, and intermediate colors 841is. Red text is new, blue is old, and intermediate colors indicate
841indicate intermediate ages. By default, the color is scaled over the 842intermediate ages. By default, the color is scaled over the full
842full range of ages, such that the oldest changes are blue, and the 843range of ages, such that the oldest changes are blue, and the newest
843newest changes are red. 844changes are red. If the variable @code{vc-annotate-background-mode}
845is non-@code{nil}, the colors expressing the age of each line are
846applied to the background color, leaving the foreground at its default
847color.
844 848
845 When you give a prefix argument to this command, Emacs reads two 849 When you give a prefix argument to this command, Emacs reads two
846arguments using the minibuffer: the revision to display and annotate 850arguments using the minibuffer: the revision to display and annotate
diff --git a/etc/NEWS b/etc/NEWS
index 8a926c2a731..ee56d23d174 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -826,6 +826,7 @@ This command is useful when you perform version control commands
826outside Emacs (e.g., from the shell prompt), or if you switch the VC 826outside Emacs (e.g., from the shell prompt), or if you switch the VC
827back-end for the buffer's file, or remove it from version control. 827back-end for the buffer's file, or remove it from version control.
828 828
829+++
829*** New option `vc-annotate-background-mode' controls whether 830*** New option `vc-annotate-background-mode' controls whether
830the color range from `vc-annotate-color-map' is applied to the 831the color range from `vc-annotate-color-map' is applied to the
831background or to the foreground. 832background or to the foreground.