mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-31 04:41:23 -08:00
; Improve the documentation of the last commit
* lisp/vc/log-view.el (log-view-copy-revision-as-kill): * doc/emacs/maintaining.texi (VC Change Log): * etc/NEWS: Improve wording of last commit. (Bug#79493)
This commit is contained in:
parent
d0c63b8427
commit
5ee1e205e1
3 changed files with 11 additions and 7 deletions
|
|
@ -1245,9 +1245,11 @@ earlier revision (@code{log-view-diff-changeset}). This shows the
|
|||
changes to all files made in that revision.
|
||||
|
||||
@item w
|
||||
Copy the revision of the log entry at point, or all marked revisions, to
|
||||
the kill ring, as if you had used @kbd{M-w}
|
||||
(@code{log-view-copy-revision-as-kill}).
|
||||
Copy to the kill ring (@pxref{Kill Ring}) the revision ID of the log
|
||||
entry at point, as if you had used @kbd{M-w}
|
||||
(@code{log-view-copy-revision-as-kill}). If several revisions are
|
||||
marked, the command copies to the kill ring the IDs of all of them,
|
||||
separated by spaces.
|
||||
|
||||
@item @key{RET}
|
||||
In a compact-style log buffer (e.g., the one created by @kbd{C-x v L}),
|
||||
|
|
|
|||
6
etc/NEWS
6
etc/NEWS
|
|
@ -2395,8 +2395,10 @@ In addition, a new command 'U' removes all marks.
|
|||
|
||||
+++
|
||||
*** New command 'w' in Log View mode.
|
||||
'w' now copies the revision of the log entry at point to the kill ring.
|
||||
If there are marked revisions, it copies those, instead.
|
||||
The new command 'log-view-copy-revision-as-kill', by default bound to
|
||||
'w' in Log View mode, copies to the kill ring the ID of the revision at
|
||||
point in the log entry. If there are marked revisions, it copies the
|
||||
IDs of those, instead.
|
||||
|
||||
** Diff mode
|
||||
|
||||
|
|
|
|||
|
|
@ -751,8 +751,8 @@ considered file(s)."
|
|||
fr to)))
|
||||
|
||||
(defun log-view-copy-revision-as-kill ()
|
||||
"Copy the revision at point to the kill ring.
|
||||
If there are marked revisions, use those, separated by spaces."
|
||||
"Copy the ID of the revision at point to the kill ring.
|
||||
If there are marked revisions, copy the IDs of those, separated by spaces."
|
||||
(interactive)
|
||||
(let ((revisions (log-view-get-marked)))
|
||||
(if (length> revisions 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue