diff options
| author | Eli Zaretskii | 2015-12-26 18:04:03 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-26 18:04:03 +0200 |
| commit | 42ae568b3d187a42ead03d880efda076615e0d3a (patch) | |
| tree | c10be0b559974b387674b91cca63c639a559a050 | |
| parent | ca13f61dea7030452848d455db7d3aba9e2e7a85 (diff) | |
| download | emacs-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.texi | 14 | ||||
| -rw-r--r-- | etc/NEWS | 1 |
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 | |||
| 832 | window. | 832 | window. |
| 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} |
| 837 | with per-line revision information, by typing @kbd{C-x v g} | 838 | with 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 |
| 839 | displaying the file's text, with each line colored to show | 840 | displaying the file's text, with each line colored to show how old it |
| 840 | how old it is. Red text is new, blue is old, and intermediate colors | 841 | is. Red text is new, blue is old, and intermediate colors indicate |
| 841 | indicate intermediate ages. By default, the color is scaled over the | 842 | intermediate ages. By default, the color is scaled over the full |
| 842 | full range of ages, such that the oldest changes are blue, and the | 843 | range of ages, such that the oldest changes are blue, and the newest |
| 843 | newest changes are red. | 844 | changes are red. If the variable @code{vc-annotate-background-mode} |
| 845 | is non-@code{nil}, the colors expressing the age of each line are | ||
| 846 | applied to the background color, leaving the foreground at its default | ||
| 847 | color. | ||
| 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 |
| 846 | arguments using the minibuffer: the revision to display and annotate | 850 | arguments using the minibuffer: the revision to display and annotate |
| @@ -826,6 +826,7 @@ This command is useful when you perform version control commands | |||
| 826 | outside Emacs (e.g., from the shell prompt), or if you switch the VC | 826 | outside Emacs (e.g., from the shell prompt), or if you switch the VC |
| 827 | back-end for the buffer's file, or remove it from version control. | 827 | back-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 |
| 830 | the color range from `vc-annotate-color-map' is applied to the | 831 | the color range from `vc-annotate-color-map' is applied to the |
| 831 | background or to the foreground. | 832 | background or to the foreground. |