unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Aaron.Hawley@uvm.edu, emacs-devel@gnu.org
Subject: Re: emacs doc changes
Date: Mon, 01 May 2006 08:39:24 -0400	[thread overview]
Message-ID: <87iropc47e.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <E1FaPsX-0003yi-Vf@fencepost.gnu.org> (Richard Stallman's message of "Mon, 01 May 2006 00:19:21 -0400")

>     The author was Aaron S. Hawley <Aaron.Hawley@uvm.edu>; the thred started
>     in emacs-devel with the following post:

>        http://lists.gnu.org/archive/html/emacs-devel/2006-03/msg00358.html

> Did that thread come up with some text that we could use?
> If so, could you send it to me?

Here is a copy of the above link.  His message was followed by
6 replies/comments, so you may want to read the thread.


        Stefan


PS: The mailing-list archive messed up some of the @ thingies.  I don't know
    how to get at the raw rfc822-format text.


From: Aaron S. Hawley
Subject: diff-mode documentation
Date: Wed, 8 Mar 2006 12:07:43 -0500 (EST)

The commands and features of Diff mode aren't entirely documumented in the
Emacs manual.  The following is a patch to files.texi that would add some.
There may exist a more appropriate location in the manual (or Emacs) for
this all to go. Stefan Monnier, the author of Diff mode, has provided
helpful feedback to me on this patch.  However, any mistakes are my own.

I've tried adopting the style for command tables found elsewhere in the
manual.  The patch also adds discussion of Diff mode's brilliant feature
to interactively correct the patch after any manual edits by the user.

Hope this helps,
/a

----

  Differences between versions of files are often distributed as
patches, which are the output from the @command{diff} program.  You
can use the same Diff mode to operate on a patch by typing @kbd{M-x
diff-mode}.  Any manual edits you make to a patch with Diff mode will
automatically correct the hunk header including insert, delete and
file line numbers.  Also, the following commands help to navigate,
manipulate and apply patches in Diff mode:

@table @kbd
@item M-n
@findex diff-hunk-next
Move to the next hunk in the patch.

@item M-p
@findex diff-hunk-prev
Move to the previous hunk in the patch.

@item address@hidden
@findex diff-file-next
Move to the next file hunk in a multiple file patch.

@item address@hidden
@findex diff-file-prev
Move to the previous file hunk in a multiple file patch.

@item M-k
@findex diff-hunk-kill
Kill the current hunk at point.

@item M-K
@findex diff-file-kill
In a patch with multiple files, kill the current patch to a file.

@item C-c C-s
@findex diff-split-hunk
Split the hunk at point. This is useful when manually editing a patch
and only works with the unified diff format.

@item C-c C-r
@findex diff-refine-hunk
Recomputes the current hunk by ignoring changes in whitespace.

@item M-R
@findex diff-reverse-direction
Convert the patch to a patch that reverts.
@xref{Reversed Patches, Applying Reversed Patches, Patch, diff,
Comparing and Merging Files}.

@item M-U
@findex diff-context->unified
Convert the patch to the unified diff format.
@xref{Unified Format, Unified Format, Diff, diff,
Comparing and Merging Files}.

@item M-C
@findex diff-unified->context
Convert the patch back to context diff format.
@xref{Context Format, Context Format, Diff, diff,
Comparing and Merging Files}.

@item M-r
@findex diff-restrict-view
@findex widen
Restrict the view to the current hunk. @xref{Narrowing}.  With a
prefix argument of @kbd{C-u} restrict the view to the current patch of
a multiple file patch.  The view can be widened again with @kbd{M-W}.

@item C-c C-a
@findex diff-apply-hunk
Apply hunk to target file.  With a prefix argument of @kbd{C-u}, apply
the reverse of the hunk.

@item M-A
@findex diff-ediff-patch
Start an Ediff session with the patch.
@xref{Top, Ediff, Ediff, ediff, The Ediff Manual}.

@item C-x 4 a
Add a new entry to the change log for the current file.  @xref{Change
Log}.  This is useful for log entries for functions that are deleted
by the patch.

@end table

  reply	other threads:[~2006-05-01 12:39 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12 21:41 emacs-Xtra Nick Roberts
2006-04-13  3:20 ` emacs-Xtra Richard Stallman
2006-04-13  4:14   ` emacs-Xtra Nick Roberts
2006-04-13  7:10     ` emacs-Xtra Nic
2006-04-13  9:02       ` emacs-Xtra Eli Zaretskii
2006-04-14  4:18       ` emacs-Xtra Richard Stallman
2006-04-14 22:21         ` emacs-Xtra Nic
2006-04-15 17:33           ` emacs-Xtra Richard Stallman
2006-04-13 18:40     ` emacs-Xtra Ted Zlatanov
2006-04-14  7:43       ` emacs-Xtra Eli Zaretskii
2006-04-14 13:39         ` emacs-Xtra Ted Zlatanov
2006-04-14 14:40           ` emacs-Xtra Eli Zaretskii
2006-04-14 16:05             ` emacs-Xtra Ted Zlatanov
2006-04-14 16:54               ` emacs-Xtra Eli Zaretskii
2006-04-15 17:32               ` emacs-Xtra Richard Stallman
2006-04-15 18:09                 ` emacs-Xtra David Kastrup
2006-04-18 15:03                 ` emacs-Xtra Ted Zlatanov
2006-04-19  4:17                   ` emacs-Xtra Richard Stallman
2006-04-19 16:34                     ` emacs doc changes (was: emacs-Xtra) Ted Zlatanov
2006-04-19 17:38                       ` emacs doc changes Ted Zlatanov
2006-04-19 17:51                       ` emacs doc changes (was: emacs-Xtra) Eli Zaretskii
2006-04-19 17:57                         ` emacs doc changes David Kastrup
2006-04-19 18:01                           ` Ted Zlatanov
2006-04-19 18:15                             ` David Kastrup
2006-04-19 18:34                               ` Giorgos Keramidas
2006-04-19 20:44                                 ` Stefan Monnier
2006-04-20  9:50                                   ` Eli Zaretskii
2006-04-20  9:58                                     ` David Kastrup
2006-04-20 10:13                                       ` Eli Zaretskii
2006-04-20 19:38                                         ` Richard Stallman
2006-04-20 21:09                                           ` Stefan Monnier
2006-04-27 14:42                                             ` Richard Stallman
2006-04-30 15:29                                               ` Stefan Monnier
2006-05-01  4:19                                                 ` Richard Stallman
2006-05-01 12:39                                                   ` Stefan Monnier [this message]
2006-05-02  2:05                                                     ` Richard Stallman
2006-05-11 23:06                                                       ` Aaron S. Hawley
2006-04-20 10:25                               ` Eli Zaretskii
2006-04-20  1:14                           ` Richard Stallman
2006-04-20 13:43                             ` Jay Belanger
2006-04-20  9:15                           ` Eli Zaretskii
2006-04-20  9:21                             ` David Kastrup
2006-04-19 17:58                         ` Ted Zlatanov
2006-04-25 16:48                           ` Richard Stallman
2006-04-15 17:32           ` emacs-Xtra Richard Stallman
2006-04-14 16:15       ` emacs-Xtra Richard Stallman
2006-04-14  4:18     ` emacs-Xtra Richard Stallman
2006-04-13  8:28 ` emacs-Xtra Eli Zaretskii
2006-04-13 18:40   ` emacs-Xtra Glenn Morris
2006-04-14  7:35     ` emacs-Xtra Eli Zaretskii
2006-04-14  4:18   ` emacs-Xtra Richard Stallman
2006-04-14  8:16     ` emacs-Xtra Eli Zaretskii
2006-04-21 11:43     ` emacs-Xtra Eli Zaretskii
2006-04-21 21:05       ` emacs-Xtra Richard Stallman
2006-04-14  4:18   ` emacs-Xtra Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iropc47e.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=Aaron.Hawley@uvm.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).