unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Re: pbm trying to patch 21.1 into 21.2
Date: Tue, 03 Sep 2002 23:52:58 +0200	[thread overview]
Message-ID: <vaflm6i211h.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: al32oh$qpq$1@panix2.panix.com

dkcombs@panix.com (David Combs) writes:

> sh /david3/from_netcom-dir1/emacs-stuff/emacs-21.1-21.2.diff
>   Looks like a new-style context diff.
> File to patch: 
> ^C
>
> --- THAT (above) *IS* the problem:
> the "Looks like ...",
> then it's asking me "file to patch" -- just what
> am I supposed to type in for that?

If you look closely at the diff, you'll see that it contains
filenames.  Usually the problem is that you are in the wrong
directories for these filenames: the filename in the diff might be
a/b/c but you're inside the a directory so that b/c is the right
filename.  If you can't change directories to make it work, you can
try to pass the "-p" argument to diff which strips off leading slashes
from filenames.  (I never really understood how it worked, though.  I
usually start with -p0 and then try alternatives -p1, -p2, ... until I
find one that works.)

Instead of doing sh on the file, you could also do patch on the file:

    patch < /david3/from_netcom-dir1/emacs-stuff/emacs-21.1-21.2.diff

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

  reply	other threads:[~2002-09-03 21:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-03 19:32 pbm trying to patch 21.1 into 21.2 David Combs
2002-09-03 21:52 ` Kai Großjohann [this message]
2002-09-04  5:44   ` David Combs
2002-09-04 12:10     ` Kai Großjohann

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=vaflm6i211h.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.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).