From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: setq-local: Wrong number of arguments Date: Tue, 04 May 2021 08:47:52 +0200 Message-ID: <87o8dr56gl.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7717"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.12; emacs 27.2 Cc: help-gnu-emacs@gnu.org To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 04 09:06:18 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ldp8L-0001sq-MS for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 09:06:17 +0200 Original-Received: from localhost ([::1]:59174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldp8K-0006Zc-KU for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 03:06:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldp2o-0000JB-LQ for help-gnu-emacs@gnu.org; Tue, 04 May 2021 03:00:34 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:43591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldp2l-00078A-D2 for help-gnu-emacs@gnu.org; Tue, 04 May 2021 03:00:34 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0238A5C016A; Tue, 4 May 2021 03:00:30 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 04 May 2021 03:00:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm3; bh=XPhAwJqL3HHzZE9iOVH2E2PzkN cmRxFTqPrLSODYuQg=; b=tgZpm4+IMLRFxHcDeYGcq5MNq48OpK+aQXGV4CN/tU 1EGxRPTbVHNjeIfkWnz+pU4jasMstclSwnw7pjupXGtJMHm+Ko77y+N2H0tLc/CA /McjWuTCpCbZyOhO5wWwVPfWLeJ3v68hcgACERJu+uiQZoRJU6olVSHshp5fmfZ1 4RzkBMMLEiVYHPsK+ipsKm2nlm+bKvnWUNl6ArzoUPZE3yT7xjJgKJYpRgD8FsEE BUZjJxRaTP/Xpy2yYoLvOdxjJTazoZCU1qdVyRG3t7+4zJnUQJtVXHtUGQZnhVx7 EJ7Vc5cCpBXzFCXPJxovcz0W9FukHb/r3PUziAxXyRiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=XPhAwJ qL3HHzZE9iOVH2E2PzkNcmRxFTqPrLSODYuQg=; b=RLub76zCflxRc3s9q53jXj 3p+XvQLI+U9BERRPLw8Jl41AzJ14Q9zqoaj01mstMA+YpsAcYqu8DOZm2hDKiTVY CEjU8MZINbUBo2WLcnTaNK91cwCLvRTQZyL5MaXzt1QKQAA9wMZKPXCFzTC1oB2p 79Myu9+W3h7b0v4Dl5ejb9GTQUCEXnpuI1VchmihVCZVo30FJIi7z6VFQdLkBENF jy7ubjRplJCihzGMxjhepV0EOOL1GEBxG+bnjGGw9JcwHvgo7eRJGV/6hKx4efO8 tSDoTtHSITTBT1Q2DVdACeziSaoN2c/z5qsvnRLjpVzc2IkRpTUxKkQcEfLtZ03g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdefhedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomheplfhoohhs thcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh eqnecuggftrfgrthhtvghrnhepvdeihfetueevkeduteehudeihedvlefgieejhedvteef geelleehhfejudeijeevnecukfhppeefuddrudejrddvhedurdduleelnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Lenovo.fastmail.com (ip1f11fbc7.dynamic.kabel-deutschland.de [31.17.251.199]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 May 2021 03:00:29 -0400 (EDT) In-reply-to: Received-SPF: pass client-ip=66.111.4.27; envelope-from=joostkremers@fastmail.fm; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129404 Archived-At: 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