GNU bug report logs - #9021
24.0.50; epatch - weird, confusing, huh?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: "Drew Adams" <drew.adams@HIDDEN>; dated Thu, 7 Jul 2011 16:17:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Jul 2011 16:16:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 07 12:16:20 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QerFT-0002Aj-Em
	for submit <at> debbugs.gnu.org; Thu, 07 Jul 2011 12:16:19 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <drew.adams@HIDDEN>) id 1QerFR-0002AY-Kk
	for submit <at> debbugs.gnu.org; Thu, 07 Jul 2011 12:16:18 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1QerFL-0000us-5h
	for submit <at> debbugs.gnu.org; Thu, 07 Jul 2011 12:16:12 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD,
	UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:55847)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1QerFK-0000uZ-Dj
	for submit <at> debbugs.gnu.org; Thu, 07 Jul 2011 12:16:10 -0400
Received: from eggs.gnu.org ([140.186.70.92]:52056)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1QerFE-0007G7-2x
	for bug-gnu-emacs@HIDDEN; Thu, 07 Jul 2011 12:16:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1QerFB-0000sw-W1
	for bug-gnu-emacs@HIDDEN; Thu, 07 Jul 2011 12:16:03 -0400
Received: from rcsinet15.oracle.com ([148.87.113.117]:49622)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <drew.adams@HIDDEN>) id 1QerFB-0000sP-Hq
	for bug-gnu-emacs@HIDDEN; Thu, 07 Jul 2011 12:16:01 -0400
Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30])
	by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id
	p67GFuWV010466
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
	for <bug-gnu-emacs@HIDDEN>; Thu, 7 Jul 2011 16:15:58 GMT
Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158])
	by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id
	p67GFs0U011875
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <bug-gnu-emacs@HIDDEN>; Thu, 7 Jul 2011 16:15:55 GMT
Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68])
	by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id
	p67GFnXP022166
	for <bug-gnu-emacs@HIDDEN>; Thu, 7 Jul 2011 11:15:49 -0500
Received: from dradamslap1 (/130.35.178.194)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Thu, 07 Jul 2011 09:15:49 -0700
From: "Drew Adams" <drew.adams@HIDDEN>
To: <bug-gnu-emacs@HIDDEN>
Subject: 24.0.50; epatch - weird, confusing, huh?
Date: Thu, 7 Jul 2011 09:15:49 -0700
Message-ID: <595CCA6337AB479CBDA1D5ED43EF45C1@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
Thread-Index: Acw8wSKP+DH6WA70TPO1+Y/BYqKYBA==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109
X-Source-IP: rtcsinet22.oracle.com [66.248.204.30]
X-CT-RefId: str=0001.0A090206.4E15DBBE.0095:SCFSTAT5015188, ss=1, re=-4.000,
	fgs=0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

emacs -Q
 
This is the first time I've tried to use `epatch'.
 
I have the file to patch (e.g. `toto.el') in one window,
and the patch (as a file, e.g. `throw.patch') in another.
Both files are in the same directory, which is also the current
directory (`default-directory').
 
`M-x epatch' in the buffer of the file to be patched.
 
`y' to "Is the patch already in a buffer?"
I entered the name of the buffer of the patch, `throw.patch'.
 
I entered the name of the file to patch, `toto.el', to the
question "File to patch (directory, if multifile patch):".
 
I got this message:
 
Ediff has inferred that
 c:/drews-lisp-20/replace.el
is assumed to be the target for this patch.  However, this file does not exist.
 
Please enter an alternative patch target ...
 
No idea what to do now.  Why does it "infer" a file named "replace.el",
when I input the name of the file to be patched, which has a totally
different name ("toto.el")?  Who said anything about "replace.el"?
 
Anyway, I again try to input the (same) name of the file to be patched:
"toto.el".
 
I then see this:
 
Ediff Session Group Panel: Multifile Patch
 

     Type ? to show useful commands in this buffer
 

*** Directory A: #<buffer throw.patch>
 
 
 
        Size   Last modified           Name
    ----------------------------------------------
 
    Session 1:
       112454   Jul  7 2011 08:24:00   c:/drews-lisp-20/toto.el
    Session 2:
       112454   Jul  7 2011 08:24:00   c:/drews-lisp-20/toto.el
 

Huh?  What does all of that mean?  Why does it think I want a
"Multifile Patch"?  Why does it (apparently) consider the patch buffer
to be a directory?  Why does it list two Sessions?  What do I do now?
 
I hit `?' for more info...and I understand...nothing more (maybe less).
 
I tried the same thing in Emacs 23.3 and 22.3, with the same result.  I
tried consulting the Ediff manual for `epatch', but it was no help here.
 
What am I missing?  I'll admit that I do not know what I'm doing, here,
but at the very least it seems like the UI is confusing and the doc is
not very helpful.
 
I have no idea where to begin, and all I'm trying to do is patch a
single file with a single patch.
 
OK, so eventually I realized (by accidentally mousing over text) that
I could click one of the two (why two? why identical?) "sessions".
I tried that and it applied the patch - bingo.  What to do then was
clear (I'm familiar with ediff).
 
Whether or not someone who understands `epatch' will consider any of
this a product bug (e.g. why "replace.el"?), I hope you will think
about it some more from a UI/user (esp. newbie) perspective.

I suggest that the `epatch' UI, doc, and help are a mess, at least for
an `epatch' newbie such as myself.  I hope that someone will improve
this, and I'd appreciate any explanation wrt the behavior I see and the
questions raised above.  I still have no clue what all of that is about.
Thx.
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-06-27 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/build/include'
 





Acknowledgement sent to "Drew Adams" <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#9021; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.