From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 26 18:51:19 2025 Received: (at submit) by debbugs.gnu.org; 26 Feb 2025 23:51:19 +0000 Received: from localhost ([127.0.0.1]:56213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnRBN-0003UB-NK for submit@debbugs.gnu.org; Wed, 26 Feb 2025 18:51:19 -0500 Received: from lists.gnu.org ([2001:470:142::17]:56996) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnP8t-0005Id-0c for submit@debbugs.gnu.org; Wed, 26 Feb 2025 16:40:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnP8c-0007Sr-WB for bug-gnu-emacs@gnu.org; Wed, 26 Feb 2025 16:40:22 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnP8a-0007sf-RT for bug-gnu-emacs@gnu.org; Wed, 26 Feb 2025 16:40:18 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 216BC240027 for ; Wed, 26 Feb 2025 22:40:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1740606010; bh=8RUiyJpx1POMKTln3jf7EUrx7C5eBZwyWcdHY1D/hkM=; h=MIME-Version:Date:From:To:Cc:Subject:Message-ID:Content-Type: Content-Transfer-Encoding:From; b=gujrqDPzpCGCc4mew8lNLDrGm6ZIZLd7ILcm3EdjD2jVkZLFeK9eWfdu1phsZP5PB SFX9c8gGnvRmLaf3o3zeB1OdRV/agDW2UG9ybvexEzhe98Xd8ZLJqbySmV6JLWg7JC c2QWgOYXKZpmVihiu20dYbKufNP2/C2xRBxHnrJQKf0xhPBPq8RmfIUFtFhp0JS5SG TM21cf+lAPIaHvicJ3Oc+UdDp/BVWID/j2bSgNANjVM5R1zEGDrwqEtdN/xZykecN4 J7VPeeLH47+naXbVuedxZY3vWQ5dfo+Nvgi3fUiP+88Gm5g8WriHbqYMTCBIKOxlOe kE8EfNGH7IM5Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Z37DT4vcdz6tsb; Wed, 26 Feb 2025 22:40:09 +0100 (CET) MIME-Version: 1.0 Date: Wed, 26 Feb 2025 21:40:09 +0000 From: Daniel Gomez To: bug-gnu-emacs@gnu.org Subject: eglot causes eldoc error: (invalid-function incf) Message-ID: <1f17c21adb60087d395b6483026b74b2@posteo.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=d.gomez@posteo.org; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 26 Feb 2025 18:51:16 -0500 Cc: stefankangas@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Dear emacs maintainers, Trying eglot for the first time on a python file. Everything works but I get on the minibuffer an eldoc error: (invalid-function incf). For context: I use straight for package management, but have no declarations regarding eglot nor eldoc on my init.el. Emacs 30.1, but I tried under 29.4 with the same issue. If I set debug-on-error, I get the following, which isn't really informative: Debugger entered--Lisp error: (invalid-function incf) incf(0) #f(compiled-function (method origin) #)(:patient eglot-signature-eldoc-function) eldoc--make-callback(:patient eglot-signature-eldoc-function) #f(compiled-function (f) #)(eglot-signature-eldoc-function) run-hook-wrapped(#f(compiled-function (f) #) eglot-signature-eldoc-function) eldoc-documentation-compose() eldoc--invoke-strategy(nil) eldoc-print-current-symbol-info() #f(compiled-function () #)() apply(#f(compiled-function () #) nil) timer-event-handler([t 0 0 500000 nil #f(compiled-function () #) nil idle 0 nil]) It seems incf is being used in eldoc.el, an Emacs core package. That should not happen since as far as I understand cl is deprecated. ;;; eldoc.el --- Show function arglist or variable docstring in echo area -*- lexical-binding:t; -*- ;; Copyright (C) 1996-2025 Free Software Foundation, Inc. ;; Author: Noah Friedman ;; Keywords: extensions ;; Created: 1995-10-06 ;; Version: 1.15.0 ;; Package-Requires: ((emacs "26.3")) ;; This is a GNU ELPA :core package. Avoid functionality that is not ;; compatible with the version of Emacs recorded above. Thank you. Regards, Daniel ps: issue on github: https://github.com/joaotavora/eglot/discussions/1487#discussioncomment-12330803 From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 27 20:33:39 2025 Received: (at 76604-done) by debbugs.gnu.org; 28 Feb 2025 01:33:39 +0000 Received: from localhost ([127.0.0.1]:41050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnpFw-0006DL-HK for submit@debbugs.gnu.org; Thu, 27 Feb 2025 20:33:39 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:51206) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tnpFr-0006CG-DS for 76604-done@debbugs.gnu.org; Thu, 27 Feb 2025 20:33:33 -0500 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5e4ebc78da5so251162a12.2 for <76604-done@debbugs.gnu.org>; Thu, 27 Feb 2025 17:33:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740706405; x=1741311205; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=aBJULxiZICYB58JsRpLpjUSxrD3hcOxoT1czSFIQp7M=; b=KLPvfLwaRi+McbqVvS+Ov5W0j33nAx8cbZ1uS6ezj2SkdbUqoUCBcoWegPRvCvOXZg ykux9EqrxWCHekX0x7zMqq8+TEeEMxj8ZSYlWkBZaVIAKwfGFbBJ8WGdLENFE7+yrvhT kL/jWzX0H4lKh1VwvNgHfoa1YkidIRWyxQh8iiBUyfg0CmK6plFdPet/DO3sFp2tg1Od 37cK7fZCNSLYHvTufzLwJaPCZvC1KhP+IeODxQjcWincTWgVzbJ3GUJt/OlQ7tibrKJY PRA0xDdVEhBY7KQPQrHw0Wo3oRpcjK2ArLuGXL8JXVVE2IR+Clml8sjSCF2GmSAUBS1j 81nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740706405; x=1741311205; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=aBJULxiZICYB58JsRpLpjUSxrD3hcOxoT1czSFIQp7M=; b=p2r5m6Taww3CTAlZegMO5fy0MV57ZP3DUUu6WYVNNNG1kySiTYLkjRABtWIQod4CRw jUPRL3bCFE+0LlsD/YoeZBORuWwJM82mIztHgU7aYaG0wepOKTTkDrhinhEaHPlRLnJI 6ikTiTxzZoqMSa2OL4SeH+QU+3PwnVDXl9vAsciB953a3wxeBeoBGCPAMKSr2WsG9Svv 5guzsTwiWxq7qtD5xRTiq0mLUES9cdcmPl1vXAH87wXm+bPPpJJz0KOtyAewcNXCFEIU sOOkRAdfQLaFROk0aKs2gp8oL5iPJl+sM9m5A685bmnnWVELm3MoqvoDaftHSUf/viS8 zjrA== X-Gm-Message-State: AOJu0Yxa+66ACXJYzxvlVKZpevRPyeFSt8ny5Z+7Q7VSZwwHP6BPNJmK FrBNcymPN+Wp8yJTF/TYp1VkeRfqMsc2zJTMXxoAznS/rPFVl5LCZ6E8ud49zbt8OtdpSY3wpYu iEvaJhzshczyFfcpH7tRyFI4YiVo3zzkK X-Gm-Gg: ASbGncv/f7laz9ZM+2PRqmLzGk1tbSWLTXVOoS2cicfYnwqyUoWu2X3S3ufAIB/6nmb hlionoLHW8Xm+7nfXqL7W1tl/+CGDfw3/WMWfRhcUwJXGtyETgbUKa8BRxhH9caswtNZnG82VtR 7BLH7+TCDDGA== X-Google-Smtp-Source: AGHT+IHGd1tajWmLpfB6LlvNwWF3bitmyCEQSatsWm6PPAQxKf+V6542lvi1k4q37tt+qzAPETtd7mD723nrPYqMdBY= X-Received: by 2002:a05:6402:84a:b0:5e0:7f41:b24d with SMTP id 4fb4d7f45d1cf-5e4d6af75b9mr711864a12.9.1740706404982; Thu, 27 Feb 2025 17:33:24 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 27 Feb 2025 17:33:24 -0800 From: Stefan Kangas In-Reply-To: <1f17c21adb60087d395b6483026b74b2@posteo.net> References: <1f17c21adb60087d395b6483026b74b2@posteo.net> MIME-Version: 1.0 Date: Thu, 27 Feb 2025 17:33:24 -0800 X-Gm-Features: AQ5f1JoJGe2R5TwM0AjZw32u5benrkWrJrlza88IL-x5_CDajQzQq99yUSQOVtY Message-ID: Subject: Re: bug#76604: eglot causes eldoc error: (invalid-function incf) To: Daniel Gomez Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76604-done Cc: 76604-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Version: 31.1 Daniel Gomez writes: > Dear emacs maintainers, > > Trying eglot for the first time on a python file. > Everything works but I get on the minibuffer an eldoc error: (invalid-fun= ction > incf). > > For context: I use straight for package management, but have no declarati= ons > regarding eglot nor eldoc on my init.el. > Emacs 30.1, but I tried under 29.4 with the same issue. > > If I set debug-on-error, I get the following, which isn't really informat= ive: > > Debugger entered--Lisp error: (invalid-function incf) > incf(0) > #f(compiled-function (method origin) #)(:pa= tient > eglot-signature-eldoc-function) > eldoc--make-callback(:patient eglot-signature-eldoc-function) > #f(compiled-function (f) # -0x6cf6f9fa4609ff8>)(eglot-signature-eldoc-function) > run-hook-wrapped(#f(compiled-function (f) #) > eglot-signature-eldoc-function) > eldoc-documentation-compose() > eldoc--invoke-strategy(nil) > eldoc-print-current-symbol-info() > #f(compiled-function () #)() > apply(#f(compiled-function () #) nil) > timer-event-handler([t 0 0 500000 nil #f(compiled-function () # -0x1617e223c153308b>) nil idle 0 nil]) > > > It seems incf is being used in eldoc.el, an Emacs core package. That shou= ld not > happen since as far as I understand cl is deprecated. > > ;;; eldoc.el --- Show function arglist or variable docstring in echo area= -*- > lexical-binding:t; -*- > > ;; Copyright (C) 1996-2025 Free Software Foundation, Inc. > > ;; Author: Noah Friedman > ;; Keywords: extensions > ;; Created: 1995-10-06 > ;; Version: 1.15.0 > ;; Package-Requires: ((emacs "26.3")) > > ;; This is a GNU ELPA :core package. Avoid functionality that is not > ;; compatible with the version of Emacs recorded above. Thanks for the bug report! I was surprised that any users were affected by this, but Jo=C3=A3o explain= ed the reason why on GitHub: "Straight grabs the bleeding edge from master, makes a package out of that, so effectively jumps over the safety of the release mechanism. Package.el doesn't do that (by default)." I guess we should be grateful for the pre-alpha testing that users of "straight" are doing for us. I just hope for their sake that this aspect of straight is clearly documented. Anyways, this should now be fixed on master, so I'm closing this bug. Please test the fix and report back if it didn't work. From unknown Sat Jun 21 10:30:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 28 Mar 2025 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator