diff options
| author | Eli Zaretskii | 2008-08-08 09:34:26 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-08-08 09:34:26 +0000 |
| commit | eba27308e2a68340eac2220c610f2547fb8de637 (patch) | |
| tree | d993621b141d312e6fc80adf0f0dbb4d1cc5d00d | |
| parent | 48fad8e894ded19e7c207d118cae0dbc0edffe88 (diff) | |
| download | emacs-eba27308e2a68340eac2220c610f2547fb8de637.tar.gz emacs-eba27308e2a68340eac2220c610f2547fb8de637.zip | |
(Log Buffer, Diff Mode): Fix last changes. Add indexing.
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/files.texi | 66 |
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 @@ | |||
| 1 | 2008-08-08 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * files.texi (Log Buffer, Diff Mode): Fix last changes. Add indexing. | ||
| 4 | |||
| 1 | 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2008-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. | |||
| 1804 | for the opposite way of working---generating ChangeLog entries from | 1804 | for the opposite way of working---generating ChangeLog entries from |
| 1805 | the revision control log. | 1805 | the 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 |
| 1808 | log-edit-show-files}) shows the list of files to be committed in case | 1808 | @findex log-edit-show-diff |
| 1809 | you 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} |
| 1810 | you 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 |
| 1811 | log-edit-show-diff}) shows the diff for the files to be committed. | 1811 | in case you need to check that. (This can be a list of more than one |
| 1812 | file 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 | ||
| 1814 | committed. | ||
| 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 | ||
| 2563 | Move to the next hunk-start (@code{diff-hunk-next}). | 2567 | Move to the next hunk-start (@code{diff-hunk-next}). |
| 2564 | 2568 | ||
| 2565 | @item M-p | 2569 | @item M-p |
| 2570 | @findex diff-hunk-prev | ||
| 2566 | Move to the previous hunk-start (@code{diff-hunk-prev}). | 2571 | Move to the previous hunk-start (@code{diff-hunk-prev}). |
| 2567 | 2572 | ||
| 2568 | @item M-@} | 2573 | @item M-@} |
| 2574 | @findex diff-file-next | ||
| 2569 | Move to the next file-start, in a multi-file patch | 2575 | Move 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 | ||
| 2573 | Move to the previous file-start, in a multi-file patch | 2580 | Move 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 | ||
| 2577 | Kill the hunk at point (@code{diff-hunk-kill}). | 2585 | Kill the hunk at point (@code{diff-hunk-kill}). |
| 2578 | 2586 | ||
| 2579 | @item M-K | 2587 | @item M-K |
| 2588 | @findex diff-file-kill | ||
| 2580 | In a multi-file patch, kill the current file part. | 2589 | In 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 | ||
| 2584 | Apply this hunk to its target file (@code{diff-apply-hunk}). With a | 2594 | Apply this hunk to its target file (@code{diff-apply-hunk}). With a |
| 2585 | prefix argument of @kbd{C-u}, revert this hunk. | 2595 | prefix argument of @kbd{C-u}, revert this hunk. |
| 2586 | 2596 | ||
| 2587 | @item C-c C-c | 2597 | @item C-c C-c |
| 2588 | Go to the source corresponding to this hunk (@code{diff-goto-source}). | 2598 | @findex diff-goto-source |
| 2599 | Go 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 | ||
| 2591 | Start an Ediff session with the patch (@code{diff-ediff-patch}). | 2604 | Start 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 | ||
| 2595 | Restrict the view to the current hunk (@code{diff-restrict-view}). | 2609 | Restrict 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 |
| 2597 | view to the current patch of a multiple file patch. To widen again, | 2611 | view to the current file of a multiple-file patch. To widen again, |
| 2598 | use @kbd{C-x n w}. | 2612 | use @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 | ||
| 2601 | Reverse the direction of comparison for the entire buffer | 2616 | Reverse 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 | ||
| 2605 | Split the hunk at point (@code{diff-split-hunk}). This is for | 2621 | Split the hunk at point (@code{diff-split-hunk}). This is for |
| 2606 | manually editing patches, and only works with the unified diff format. | 2622 | manually editing patches, and only works with the @dfn{unified diff |
| 2623 | format} produced by the @option{-u} or @option{--unified} options to | ||
| 2624 | the @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 | ||
| 2627 | to the unified diff format with @kbd{C-c C-u}. | ||
| 2628 | |||
| 2629 | @item C-c C-d | ||
| 2630 | @findex diff-unified->context | ||
| 2631 | Convert the entire buffer to the @dfn{context diff format} | ||
| 2632 | (@code{diff-context->unified}). With a prefix argument, convert only | ||
| 2633 | the text within the region. | ||
| 2607 | 2634 | ||
| 2608 | @item C-c C-u | 2635 | @item C-c C-u |
| 2609 | Convert the entire buffer to unified format | 2636 | @findex diff-context->unified |
| 2637 | Convert 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 |
| 2611 | unified format to context format. When the mark is active, convert | 2639 | unified format to context format. When the mark is active, convert |
| 2612 | only the text within the region. | 2640 | only the text within the region. |
| 2613 | 2641 | ||
| 2614 | @item C-c C-w | 2642 | @item C-c C-w |
| 2643 | @findex diff-refine-hunk | ||
| 2615 | Refine the current hunk so that it disregards changes in whitespace | 2644 | Refine 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 |
| 2619 | Iterates 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 |
| 2620 | them. 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} |
| 2621 | later filled in. | 2650 | Generate a ChangeLog entry, like @kbd{C-x 4 a} does (@pxref{Change |
| 2651 | Log}), for each one of the hunks | ||
| 2652 | (@code{diff-add-change-log-entries-other-window}). This creates a | ||
| 2653 | skeleton of the log of changes that you can later fill with the actual | ||
| 2654 | descriptions of the changes. @kbd{C-x 4 a} itself in Diff mode | ||
| 2655 | operates on behalf of the current hunk's file, but gets the function | ||
| 2656 | name from the patch itself. This is useful for making log entries for | ||
| 2657 | functions 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, | ||
| 2625 | but gets the function name from the patch itself. @xref{Change Log}. | ||
| 2626 | This is useful for making log entries for functions that are deleted | ||
| 2627 | by the patch. | ||
| 2628 | 2660 | ||
| 2629 | @node Misc File Ops | 2661 | @node Misc File Ops |
| 2630 | @section Miscellaneous File Operations | 2662 | @section Miscellaneous File Operations |