Charles Campbell wrote:

> A heads up...
> 
> I have my own script which runs latex called s:MakeLatex(early) . Note 
> that it takes one parameter. However, recently, I run the command once 
> and it works; the second time I get a "E118: Too many arguments for 
> function: <SNR>127 MakeLatex . I set up a command "com! LatexFun fun! 
> s:MakeLatex" so that I can see what MakeLatex looks like, and it has 
> been redefined so that it no longer takes any arguments. No, there is no 
> point at which MakeLatex redefines itself. I've found two places where 
> that redefinition occurs:
> 
>     sil! cf errors
>        sil! cope
>        let b:coping= 1
> 
> It occurs during the "sil! cope"; removing the sil! shows (during the 
> first try)
> 
>     Pattern not found: error:
> 
> Actually, there are two such error message lines, but after the first 
> one the MakeLatex function has been re-defined to no longer accept an 
> input argument. I've tried to make a simple example but haven't been 
> able to do so so far, and I won't get back to trying to work on it until 
> Monday at the earliest.

After the function has been changed, does it tell where it was defined
if you do: 
        :verbose func MakeLatex

You may have to prepend the script ID, which you can find with:
        :filter MakeLatex func

-- 
hundred-and-one symptoms of being an internet addict:
170. You introduce your wife as "[email protected]" and refer to your
     children as "forked processes."

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202104251158.13PBwQEa2170238%40masaka.moolenaar.net.

Raspunde prin e-mail lui