summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaushal Modi <kaushal.modi@gmail.com>2017-09-29 12:38:56 -0400
committerDmitry Gutov <dgutov@yandex.ru>2017-09-30 16:01:54 +0200
commit5b45e7e1c337ddcc357b91755500d3771459be94 (patch)
treed25aea98b5a9d48a44300a305f68e8e7a869bc88
parentf17289459527da254d02e516e944c89d3c505377 (diff)
downloademacs-5b45e7e1c337ddcc357b91755500d3771459be94.tar.gz
Bind vc-region-history
* lisp/vc/vc-hooks.el (vc-prefix-map): Bind `vc-region-history' to 'C-x v h', which was earlier bound to `vc-insert-headers' (Bug#27644). * doc/emacs/maintaining.texi (VC Change Log): Mention the new binding. * doc/emacs/vc1-xtra.texi (Version Headers): Remove the association of 'C-x v h' with `vc-insert-headers'. (http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00957.html)
-rw-r--r--doc/emacs/maintaining.texi11
-rw-r--r--doc/emacs/vc1-xtra.texi11
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/vc/vc-hooks.el2
4 files changed, 16 insertions, 12 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index 7f91991daa3..dc0a71511ff 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -1050,13 +1050,14 @@ increase the number of revisions shown in an existing
entries} or @samp{Show unlimited entries} buttons at the end of the
buffer. However, RCS, SCCS, and CVS do not support this feature.
+@kindex C-x v h
@findex vc-region-history
A useful variant of examining changes is provided by the command
-@kbd{vc-region-history}, which shows a @file{*VC-history*} buffer with
-the history of changes to the region of the current file between point
-and the mark (@pxref{Mark}). The history of changes includes the
-commit log messages and also the changes themselves in the Diff
-format.
+@kbd{vc-region-history} (by default bound to @kbd{C-x v h}), which shows
+a @file{*VC-history*} buffer with the history of changes to the region
+of the current file between point and the mark (@pxref{Mark}). The
+history of changes includes the commit log messages and also the
+changes themselves in the Diff format.
Invoke this command after marking the region of the current file in
whose changes you are interested. In the @file{*VC-history*} buffer
diff --git a/doc/emacs/vc1-xtra.texi b/doc/emacs/vc1-xtra.texi
index 58e4de027cb..00498399c79 100644
--- a/doc/emacs/vc1-xtra.texi
+++ b/doc/emacs/vc1-xtra.texi
@@ -238,20 +238,19 @@ is one, to determine the file version, since it is often more reliable
than the RCS master file. To inhibit using the version header this
way, change the variable @code{vc-consult-headers} to @code{nil}.
-@kindex C-x v h
@findex vc-insert-headers
@vindex vc-@var{backend}-header
- To insert a suitable header string into the current buffer, type
-@kbd{C-x v h} (@code{vc-insert-headers}). This command works only on
+ To insert a suitable header string into the current buffer, use the
+command @kbd{M-x vc-insert-headers}. This command works only on
Subversion, CVS, RCS, and SCCS@. The variable
@code{vc-@var{backend}-header} contains the list of keywords to insert
into the version header; for instance, CVS uses @code{vc-cvs-header},
whose default value is @code{'("\$Id\$")}. (The extra backslashes
prevent the string constant from being interpreted as a header, if the
Emacs Lisp file defining it is maintained with version control.) The
-@kbd{C-x v h} command inserts each keyword in the list on a new line
-at point, surrounded by tabs, and inside comment delimiters if
-necessary.
+@code{vc-insert-headers} command inserts each keyword in the list on a
+new line at point, surrounded by tabs, and inside comment delimiters
+if necessary.
@vindex vc-static-header-alist
The variable @code{vc-static-header-alist} specifies further strings
diff --git a/etc/NEWS b/etc/NEWS
index adeee9e6ef2..2216cfc18ee 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1115,6 +1115,10 @@ See the 'vc-faces' customization group.
*** 'vc-dir-mode' now binds 'vc-log-outgoing' to 'O'; and has various
branch-related commands on a keymap bound to 'B'.
+---
+*** 'vc-region-history' is now bound to 'C-x v h', replacing the older
+'vc-insert-headers' binding.
+
** CC mode
---
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index 4c94280faf2..99c8211ad5f 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -882,7 +882,7 @@ In the latter case, VC mode is deactivated for this buffer."
(define-key map "d" 'vc-dir)
(define-key map "g" 'vc-annotate)
(define-key map "G" 'vc-ignore)
- (define-key map "h" 'vc-insert-headers)
+ (define-key map "h" 'vc-region-history)
(define-key map "i" 'vc-register)
(define-key map "l" 'vc-print-log)
(define-key map "L" 'vc-print-root-log)