On 2013-11-13, Ben Fritz wrote:

> I cannot get this patch to apply using either whatever "patch"
> utility is installed on Solaris or GNU patch on Windows. Can you
> please post in a different patch format? No matter how I tweak the
> patch file, and no matter what I put for the -p value, I cannot
> get it to apply. The best it does is tell me the patch looks like
> a unified context diff and then ask me for a file to patch.

The following may not help, but it does suggest that the patch
itself is OK.

I saved the attachment to my home directory, then cd'd to my vim
source directory, the one containing the .hg directory, and executed
patch like this.

    $ patch -p1 --dry-run < ~/autotextobject.diff
    patching file runtime/doc/motion.txt
    patching file runtime/doc/options.txt
    patching file runtime/doc/tags
    Hunk #3 succeeded at 7793 (offset -2 lines).
    patching file src/normal.c
    Hunk #1 succeeded at 9308 (offset -7 lines).
    patching file src/option.c
    Hunk #1 succeeded at 554 (offset -1 lines).
    patching file src/option.h

That directory has the source for Vim 7.4.41.  I didn't notice which
version the patch applied to, but a different version would explain
the offsets.

Here is the patch version info.

    $ patch -v
    patch 2.6
    Copyright (C) 1988 Larry Wall
    Copyright (C) 2003 Free Software Foundation, Inc.

    This program comes with NO WARRANTY, to the extent permitted by law.
    You may redistribute copies of this program
    under the terms of the GNU General Public License.
    For more information about these matters, see the file named COPYING.

    written by Larry Wall and Paul Eggert

This system is running Ubuntu 10.04.

HTH,
Gary

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui