aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2008-08-08 09:34:26 +0000
committerEli Zaretskii2008-08-08 09:34:26 +0000
commiteba27308e2a68340eac2220c610f2547fb8de637 (patch)
treed993621b141d312e6fc80adf0f0dbb4d1cc5d00d
parent48fad8e894ded19e7c207d118cae0dbc0edffe88 (diff)
downloademacs-eba27308e2a68340eac2220c610f2547fb8de637.tar.gz
emacs-eba27308e2a68340eac2220c610f2547fb8de637.zip
(Log Buffer, Diff Mode): Fix last changes. Add indexing.
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/files.texi66
2 files changed, 53 insertions, 17 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 6ee8e90b04b..703974c1362 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12008-08-08 Eli Zaretskii <eliz@gnu.org>
2
3 * files.texi (Log Buffer, Diff Mode): Fix last changes. Add indexing.
4
12008-08-07 Dan Nicolaescu <dann@ics.uci.edu> 52008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2 6
3 * files.texi (Log Buffer): Describe C-c C-d. 7 * files.texi (Log Buffer): Describe C-c C-d.
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 37b960f1826..03a49da5933 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1804,11 +1804,14 @@ if the top entry was made under your user name on the current date.
1804for the opposite way of working---generating ChangeLog entries from 1804for the opposite way of working---generating ChangeLog entries from
1805the revision control log. 1805the revision control log.
1806 1806
1807 In the @samp{*VC-Log*} buffer, @kbd{C-c C-f} (@kbd{M-x 1807@findex log-edit-show-files
1808log-edit-show-files}) shows the list of files to be committed in case 1808@findex log-edit-show-diff
1809you need to check that. (This can be a list of more than one file if 1809 In the @samp{*VC-Log*} buffer, @kbd{C-c C-f}
1810you use VC Directory Mode or PCL-CVS.) @kbd{C-c C-f} (@kbd{M-x 1810(@code{log-edit-show-files}) shows the list of files to be committed
1811log-edit-show-diff}) shows the diff for the files to be committed. 1811in case you need to check that. (This can be a list of more than one
1812file if you use VC Directory Mode or PCL-CVS.) @kbd{C-c C-d}
1813(@code{log-edit-show-diff}) shows the diffs for the files to be
1814committed.
1812@iftex 1815@iftex
1813@xref{VC Directory Mode,,,emacs-xtra, Specialized Emacs Features}, 1816@xref{VC Directory Mode,,,emacs-xtra, Specialized Emacs Features},
1814@end iftex 1817@end iftex
@@ -2560,71 +2563,100 @@ manipulate and apply parts of patches:
2560 2563
2561@table @kbd 2564@table @kbd
2562@item M-n 2565@item M-n
2566@findex diff-hunk-next
2563Move to the next hunk-start (@code{diff-hunk-next}). 2567Move to the next hunk-start (@code{diff-hunk-next}).
2564 2568
2565@item M-p 2569@item M-p
2570@findex diff-hunk-prev
2566Move to the previous hunk-start (@code{diff-hunk-prev}). 2571Move to the previous hunk-start (@code{diff-hunk-prev}).
2567 2572
2568@item M-@} 2573@item M-@}
2574@findex diff-file-next
2569Move to the next file-start, in a multi-file patch 2575Move to the next file-start, in a multi-file patch
2570(@code{diff-file-next}). 2576(@code{diff-file-next}).
2571 2577
2572@item M-@{ 2578@item M-@{
2579@findex diff-file-prev
2573Move to the previous file-start, in a multi-file patch 2580Move to the previous file-start, in a multi-file patch
2574(@code{diff-file-prev}). 2581(@code{diff-file-prev}).
2575 2582
2576@item M-k 2583@item M-k
2584@findex diff-hunk-kill
2577Kill the hunk at point (@code{diff-hunk-kill}). 2585Kill the hunk at point (@code{diff-hunk-kill}).
2578 2586
2579@item M-K 2587@item M-K
2588@findex diff-file-kill
2580In a multi-file patch, kill the current file part. 2589In a multi-file patch, kill the current file part.
2581(@code{diff-file-kill}). 2590(@code{diff-file-kill}).
2582 2591
2583@item C-c C-a 2592@item C-c C-a
2593@findex diff-apply-hunk
2584Apply this hunk to its target file (@code{diff-apply-hunk}). With a 2594Apply this hunk to its target file (@code{diff-apply-hunk}). With a
2585prefix argument of @kbd{C-u}, revert this hunk. 2595prefix argument of @kbd{C-u}, revert this hunk.
2586 2596
2587@item C-c C-c 2597@item C-c C-c
2588Go to the source corresponding to this hunk (@code{diff-goto-source}). 2598@findex diff-goto-source
2599Go to the source file and line corresponding to this hunk
2600(@code{diff-goto-source}).
2589 2601
2590@item C-c C-e 2602@item C-c C-e
2603@findex diff-ediff-patch
2591Start an Ediff session with the patch (@code{diff-ediff-patch}). 2604Start an Ediff session with the patch (@code{diff-ediff-patch}).
2592@xref{Top, Ediff, Ediff, ediff, The Ediff Manual}. 2605@xref{Top, Ediff, Ediff, ediff, The Ediff Manual}.
2593 2606
2594@item C-c C-n 2607@item C-c C-n
2608@findex diff-restrict-view
2595Restrict the view to the current hunk (@code{diff-restrict-view}). 2609Restrict the view to the current hunk (@code{diff-restrict-view}).
2596@xref{Narrowing}. With a prefix argument of @kbd{C-u}, restrict the 2610@xref{Narrowing}. With a prefix argument of @kbd{C-u}, restrict the
2597view to the current patch of a multiple file patch. To widen again, 2611view to the current file of a multiple-file patch. To widen again,
2598use @kbd{C-x n w}. 2612use @kbd{C-x n w} (@code{widen}).
2599 2613
2600@item C-c C-r 2614@item C-c C-r
2615@findex diff-reverse-direction
2601Reverse the direction of comparison for the entire buffer 2616Reverse the direction of comparison for the entire buffer
2602(@code{diff-reverse-direction}). 2617(@code{diff-reverse-direction}).
2603 2618
2604@item C-c C-s 2619@item C-c C-s
2620@findex diff-split-hunk
2605Split the hunk at point (@code{diff-split-hunk}). This is for 2621Split the hunk at point (@code{diff-split-hunk}). This is for
2606manually editing patches, and only works with the unified diff format. 2622manually editing patches, and only works with the @dfn{unified diff
2623format} produced by the @option{-u} or @option{--unified} options to
2624the @command{diff} program. If you need to split a hunk in the
2625@dfn{context diff format} produced by the @option{-c} or
2626@option{--context} options to @command{diff}, first convert the buffer
2627to the unified diff format with @kbd{C-c C-u}.
2628
2629@item C-c C-d
2630@findex diff-unified->context
2631Convert the entire buffer to the @dfn{context diff format}
2632(@code{diff-context->unified}). With a prefix argument, convert only
2633the text within the region.
2607 2634
2608@item C-c C-u 2635@item C-c C-u
2609Convert the entire buffer to unified format 2636@findex diff-context->unified
2637Convert the entire buffer to unified diff format
2610(@code{diff-context->unified}). With a prefix argument, convert 2638(@code{diff-context->unified}). With a prefix argument, convert
2611unified format to context format. When the mark is active, convert 2639unified format to context format. When the mark is active, convert
2612only the text within the region. 2640only the text within the region.
2613 2641
2614@item C-c C-w 2642@item C-c C-w
2643@findex diff-refine-hunk
2615Refine the current hunk so that it disregards changes in whitespace 2644Refine the current hunk so that it disregards changes in whitespace
2616(@code{diff-refine-hunk}). 2645(@code{diff-refine-hunk}).
2617 2646
2618@item C-x 4 A 2647@item C-x 4 A
2619Iterates over the diff hunks and does a @kbd{C-x 4 a} for each one of 2648@findex diff-add-change-log-entries-other-window
2620them. The goal is to create a skeleton for the ChangeLog that can be 2649@findex add-change-log-entries-other-window@r{, in Diff mode}
2621later filled in. 2650Generate a ChangeLog entry, like @kbd{C-x 4 a} does (@pxref{Change
2651Log}), for each one of the hunks
2652(@code{diff-add-change-log-entries-other-window}). This creates a
2653skeleton of the log of changes that you can later fill with the actual
2654descriptions of the changes. @kbd{C-x 4 a} itself in Diff mode
2655operates on behalf of the current hunk's file, but gets the function
2656name from the patch itself. This is useful for making log entries for
2657functions that are deleted by the patch.
2622@end table 2658@end table
2623 2659
2624 @kbd{C-x 4 a} in Diff mode operates on behalf of the target file,
2625but gets the function name from the patch itself. @xref{Change Log}.
2626This is useful for making log entries for functions that are deleted
2627by the patch.
2628 2660
2629@node Misc File Ops 2661@node Misc File Ops
2630@section Miscellaneous File Operations 2662@section Miscellaneous File Operations