help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setq-local: Wrong number of arguments


From: Joost Kremers
Subject: Re: setq-local: Wrong number of arguments
Date: Tue, 04 May 2021 08:47:52 +0200
User-agent: mu4e 1.5.12; emacs 27.2

On Mon, May 03 2021, Christopher Dimech wrote:
> I am gutting an error saying
>
> setq-local: Wrong number of arguments: (2 . 2), 4
>
> Have no idea what it means.

The message means that you're calling a function that takes between two and two
arguments but you're passing it four. Whether this function is indeed
`setq-local` is doubtful, because `setq-local` can take more than two arguments,
as long as it has an ever number of arguments and each odd argument is a symbol.

I can't see anything obviously wrong with the code you posted (though I may well
be overlooking something...) If it were me, this would probably be the point
where I start edebug...


-- 
Joost Kremers
Life has its moments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]