From: Alan Mackenzie <acm@muc.de>
Subject: Diff Mode: Can I apply a difference to a buffer of my choosing?
Date: Sun, 29 Jan 2006 15:02:42 +0000 [thread overview]
Message-ID: <ielird.jl.ln@acm.acm> (raw)
Emacs 21.3.
I have a file, cc-defs.el.diff, which I created with a "cvs diff"
operation on the Emacs CVS at savannah, like this:
# cvs diff -c -r1.36 -r 1.37 cc-defs.el > cc-defs.el.diff
. I have loaded cc-defs.el.diff into a buffer in Diff Mode. I want to
apply one of its diffs to a buffer (coincidentally also called
cc-defs.el). However, when I try C-c C-a (`diff-apply-hunk'), Emacs
loads a different version of cc-defs.el, and applies the patch to that.
Is there any convenient way of associating cc-defs.el.diff with the
buffer I want to change? Neither C-h m nor the Emacs manual seems to
suggest a way.
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
next reply other threads:[~2006-01-29 15:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-29 15:02 Alan Mackenzie [this message]
2006-02-04 22:35 ` Diff Mode: Can I apply a difference to a buffer of my choosing? Stefan Monnier
2006-02-10 11:11 ` Alan Mackenzie
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=ielird.jl.ln@acm.acm \
--to=acm@muc.de \
/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.
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).