From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Diff Mode: Can I apply a difference to a buffer of my choosing? Date: Sun, 29 Jan 2006 15:02:42 +0000 Organization: muc.de e.V. -- private internet access Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1138555224 21503 80.91.229.2 (29 Jan 2006 17:20:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2006 17:20:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 18:20:23 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F3GDs-0000IS-Ba for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 18:20:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F3GGn-0001yf-Ao for geh-help-gnu-emacs@m.gmane.org; Sun, 29 Jan 2006 12:23:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!news2.volia.net!news.germany.com!news.belwue.de!informatik.tu-muenchen.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1138546500 85006 193.149.49.134 (29 Jan 2006 14:55:00 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 29 Jan 2006 14:55:00 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:137282 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:32904 Archived-At: 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").