problem with a command that I didn't used to have

10 views
Skip to first unread message

Charles Campbell

unread,
Apr 24, 2021, 3:58:42 PM4/24/21
to vim...@googlegroups.com
Hello:

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.

Regards,
Chip Campbell

Bram Moolenaar

unread,
Apr 25, 2021, 7:58:35 AM4/25/21
to vim...@googlegroups.com, Charles Campbell
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 "my_...@home.wife" and refer to your
children as "forked processes."

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages