From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: setq-local: Wrong number of arguments Date: Tue, 4 May 2021 09:59:07 +0200 Message-ID: References: <87o8dr56gl.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 04 10:01:00 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 1ldpzI-0002xA-1o for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 10:01:00 +0200 Original-Received: from localhost ([::1]:43336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldpzD-0006zi-Nj for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 04 May 2021 04:00:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldpxe-0006yS-WE for help-gnu-emacs@gnu.org; Tue, 04 May 2021 03:59:19 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:38841) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldpxZ-0000fc-88 for help-gnu-emacs@gnu.org; Tue, 04 May 2021 03:59:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620115147; bh=FbWlCfPVX02Zh9kBJiROPuk4kZ47DK8bV2AcM4iXiiA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=e/ajrVTleyXB1BHK7ZoHZrBCn33TZUOvyjCXNUa2SZwv9RxQ9B0bmXC58W0und0lx bslrHCc2/aLj0bQ+u9I7vwvPcHwESZ5o+Dmb+XgmT02dmT4aW6eFzUuTOxc24nGFpG fYGcacgNlJE59K8jiDM+TWBOpbR1B74C0u7vWdp0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs02.server.lan [172.19.170.129]) (via HTTP); Tue, 4 May 2021 09:59:07 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87o8dr56gl.fsf@fastmail.fm> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:wIxbK4ft389oAv8nSyuQggKzmYrP4/t61+99eqejYBv6AoAs3NFs7AnI98qnf4P27dHV0 d9FObKjD3DPl9ZEfmA2HZEDRfTv7RSS199EZ4KLR9QALGX7zaCeeE2AjcEPzcLu3ntHM3IwnUx6l kVhhvJKx+h1K1BlckDs/7CWfX8qtwJEtfICrsontkagGcXziiwXXZUA50MC07d8Em7K3rKn8NOix d12ItzevFqHXnh2INtlsikZbATFlaIh+ZLJ9/ba9iOjsr2OBjoFhwekKJsjtcCCiTIbZ3QUxTBnC Rs= X-UI-Out-Filterresults: notjunk:1;V03:K0:x+LWzKLjboI=:52uPlferSl4U3i0ZhkuORt QSX2MlGjamMXxOcblOOmVKrtfOw1+l0dkhS2nwgfa50fIX2z0jyTqMt6YJIRjmU8jBQ4ETrST 8CbST6FWIkfVVe1vrp0/LcTHnX3iKQQVCzP7Q/EjzWEcmeg2dYR7RGknYHC0evt0uKOfT1TAs BWX7shYNH2JTWGCiKunG1N8h4hkW4ydMl5CcKJg7QeWMmVE4YVshUYRUZI9WS2iHIIYzGO+nv yaS5n9DBZVB8vbxRtjqa9JD5BocK+F2s45tsuJTcBRv/2Dc/ySg33ZNQ3+vQ7JOz6Se7uRXE+ qOChV/JVFmH6tKzCPmQWNJGzLE2JcIl0za3rhW5YlrknMw9hjOmXcc778jbVAieH0BYA9Fw1U tCwSiGip7mhafId6Vb0IQFwq+Jm6M/VJAliFkBljtEV4v3FRS2/l7PJthDvCd1Bx/nvPtJz1Z VPhLLIutBJGca7rUALEDajaEfNfMISLhRT1TFgGimCsfKUwnwkxrIZwc5kcEAN4dtsqtJAAIf 2U4Rwh/YntugtqIDjxzB7U4fXG9qEz3kJN7OYv11xa3RgR+asOMGsWc3EgNpZP5GK9ZSe1q6Y O2W6w+MwAVauuGK2VX2uLol6RHlgxRI4ZLqowgDfJVlUX9YZKAsKgldtNRPrO3odgjUvs+s9b JkOkCoIwSk0GaprKVjPBwfC1NAAo5TYenEt7zXeGpnYhrsCYWEWQeTMHb5ccD3QS+T2Iroitq +TESA9sCS5NyJnwX/4UQ5oUdxNeJZRXdEWlyEU8j7ZK2gDv4o0GoVL7DBF4F0dKl9FQT/DC7 Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:129409 Archived-At: If he was using the older Emacs 25, that error will show up when trying to set two local variables. =2D-------------------- Christopher Dimech General Administrator - Naiad Informatics - GNU Project (Geocomputation) - Geophysical Simulation - Geological Subsurface Mapping - Disaster Preparedness and Mitigation - Natural Resource Exploration and Production - Free Software Advocacy > Sent: Tuesday, May 04, 2021 at 6:47 PM > From: "Joost Kremers" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu.org > Subject: Re: setq-local: Wrong number of arguments > > > 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 ar= guments, > 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 p= oint > where I start edebug... > > > -- > Joost Kremers > Life has its moments >