unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to patch diff into source code?
Date: Wed, 21 Jan 2009 13:30:12 -0800 (PST)	[thread overview]
Message-ID: <527e7ac7-9456-4615-92ff-7d5d34aff055@s1g2000prg.googlegroups.com> (raw)
In-Reply-To: cd7ab62a-714e-4876-94bd-dda6cdff2269@r15g2000prd.googlegroups.com

it turns out the patch is corrupted by email.

 Xah

On Jan 20, 6:08 pm, Xah Lee <xah...@gmail.com> wrote:
> could anyone help me with a diff/patch question?
>
> i got the following patch:
>
> --- lisp\textmodes\css-mode.el.orig     2008-03-01 20:28:16.000000000
> +0100
> +++ lisp\textmodes\css-mode.el  2009-01-19 09:14:55.138125000 +0100
> @@ -369,5 +369,5 @@
>                            (forward-comment (- (point-max)))
>                            ;; FIXME: We should also skip punctuation.
> -                          (not (memq (char-before) '(?\; ?\
> {)))))))))))
> +                          (not (or (bobp) (memq (char-before) '(?\;
> ?\{))))))))))))
>
>  (defun css-forward-sexp (n)
>
> how do i use diff (or other?) to merge it into source?
> i've never used diff for patching.
>
> i just found and used menu Tools‣Apply Patch, but then i got
>
> patching file /Users/xah/web/emacs/css-mode.el
> patch: **** malformed patch at line 8: ?\{))))))))))))
>
> is it something i did wrong or the patch?
>
> Thanks.
>
>  Xah
> ∑http://xahlee.org/
>
> ☄



  parent reply	other threads:[~2009-01-21 21:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21  2:08 how to patch diff into source code? Xah Lee
2009-01-21 21:29 ` Lennart Borgman
2009-01-21 21:30 ` Xah Lee [this message]
2009-01-21 22:55 ` Ian Eure
2009-01-21 23:23 ` Juanma Barranquero
     [not found] ` <mailman.5472.1232580233.26697.help-gnu-emacs@gnu.org>
2009-01-21 23:33   ` Xah Lee

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=527e7ac7-9456-4615-92ff-7d5d34aff055@s1g2000prg.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).