unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org
Subject: Re: Problems with the url package on w32?
Date: Wed, 20 Dec 2006 05:52:03 -0500	[thread overview]
Message-ID: <E1Gwz3L-00044S-6Y@fencepost.gnu.org> (raw)
In-Reply-To: <f7ccd24b0612200107l574997ecyb635c9db7ce0af6e@mail.gmail.com> (lekktu@gmail.com)

> Date: Wed, 20 Dec 2006 10:07:15 +0100
> From: "Juanma Barranquero" <lekktu@gmail.com>
> Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org
> 
> I don't use ediff either. I was talking of cutting a patch from an
> e-mail, for example, pasting it into a buffer, M-x diff-mode'ing and
> doing C-c C-a.

Too complicated, IMHO, and also could produce problems on w32 (due to
CRLF nuisance in conjunction with the ported Patch's inability to DTRT
when there's EOL mismatch between the patched file and the patch).
What I do is simpler: set the region around the diffs in the email
buffer, and then type these commands:

	C-x RET c unix RET
	M-| patch -d /path/to/emacs/directory -p0 --binary

(Depending on the exact form of file names in the diffs, the argument
to the -d switch and/or the level given to -p may need to be
different.)

This works reliably for me, and if the diffs were munged by email, I
get a failure message in the minibuffer and a .rej file left to be
handled manually.

> > Never had such problems with my method, since the shell command output
> > is displayed by M-|.
> 
> That only means that you method works, not that diff-mode or ediff
> don't have a problem :-)

I was replying to your message where you seemed to imply that running
Patch from within Emacs is inherently unstable or unreliable.

  reply	other threads:[~2006-12-20 10:52 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ur6vodg5m.fsf@gmail.com>
     [not found] ` <871wnnclkz.fsf@freemail.hu>
     [not found]   ` <uac2acxu0.fsf@gmail.com>
     [not found]     ` <87lkltztzy.fsf@freemail.hu>
2006-12-02 11:37       ` Problems with the url package on w32? Magnus Henoch
2006-12-03  3:15         ` Richard Stallman
2006-12-03 18:25           ` Magnus Henoch
2006-12-03 21:17             ` Kim F. Storm
2006-12-19 15:48               ` Kim F. Storm
2006-12-19 23:13                 ` Juanma Barranquero
2006-12-20 11:05                   ` Kim F. Storm
2006-12-20 12:05                     ` Juanma Barranquero
2006-12-19 23:45                 ` Lennart Borgman
2006-12-19 23:54                   ` Juanma Barranquero
2006-12-20  0:04                     ` Lennart Borgman
2006-12-20  0:08                       ` Juanma Barranquero
2006-12-20  6:57                     ` Eli Zaretskii
2006-12-20  9:07                       ` Juanma Barranquero
2006-12-20 10:52                         ` Eli Zaretskii [this message]
2006-12-20 11:06                           ` Juanma Barranquero
2006-12-20 21:41                         ` Stefan Monnier
2006-12-20 23:13                           ` Juanma Barranquero
2006-12-21 22:47                             ` Stefan Monnier
2006-12-21 22:56                               ` Juanma Barranquero
2006-12-21 23:31                                 ` Stefan Monnier
2006-12-21 23:13                               ` Lennart Borgman
2006-12-22 21:48                                 ` Stefan Monnier
2006-12-23  0:33                                   ` Lennart Borgman
2006-12-21  1:02                         ` Lennart Borgman
2006-12-21 10:03                           ` Lennart Borgman
2006-12-04  5:15             ` Richard Stallman
2006-12-04  8:55               ` Kim F. Storm
2006-12-05  1:45                 ` Richard Stallman
2006-12-20 11:22 LENNART BORGMAN
2006-12-20 14:36 ` Kim F. Storm
2006-12-21 11:52 ` Jason Rumney

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=E1Gwz3L-00044S-6Y@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman.073@student.lu.se \
    /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).