Forums » Using AUTOs »
Wrong number of arguments error when using AUTOS
Added by Ryan Olivastri 7 months ago
Just added the latest (v718) verilog-mode.el file to my Emacs path dir and now I get the following error when trying to expand AUTOs:
Wrong number of arguments: #<compiled-function (beg end) "...(15)" [beg end string set-text-properties 0 nil] 5 551036>, 3
Has anyone seen this before? I also got the same error when trying to use the AUTO_TEMPLATE function with my older (v538) version of verilog-mode.
The testcase I am using is very simple, and is as follows:
File auto_test.v:module auto_test (); foo f1 (/*AUTOINST*/); endmodule // auto_test
File foo.v:
module foo(
input [7:0] blah,
input [2:0] blee,
output [3:0] bar
);
endmodule // foo
Replies (3)
RE: Wrong number of arguments error when using AUTOS - Added by Wilson Snyder 7 months ago
Which version of emacs is this?
RE: Wrong number of arguments error when using AUTOS - Added by Ryan Olivastri 7 months ago
Whoops, forgot to add that detail.
XEmacs 21.1.9
RE: Wrong number of arguments error when using AUTOS - Added by Wilson Snyder 7 months ago
Wow, that version is 11 years old. I don't have the ability to run it; you really should upgrade, but it might be something simple to fix if you can debug it.
Do M-x eval-expression (setq debug-on-error t)
Then cause the problem. It'll show a backtrace. See what function was called just below the first verilog-FUNCTION listed in the backtrace; it'll be some function that changed in more recent Emacs'en. Send the backtrace and the M-x describe-function {function-that-broke}.
(1-3/3)
![[logo]](/img/veripool_small.png)