From unknown Sun Aug 17 09:09:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27006 <27006@debbugs.gnu.org> To: bug#27006 <27006@debbugs.gnu.org> Subject: Status: 26.0.50; Elint reports false 'undefined function' errors Reply-To: bug#27006 <27006@debbugs.gnu.org> Date: Sun, 17 Aug 2025 16:09:19 +0000 retitle 27006 26.0.50; Elint reports false 'undefined function' errors reassign 27006 emacs submitter 27006 Tino Calancha severity 27006 minor tag 27006 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 20 09:08:24 2017 Received: (at submit) by debbugs.gnu.org; 20 May 2017 13:08:24 +0000 Received: from localhost ([127.0.0.1]:56144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dC47M-0001Ay-D8 for submit@debbugs.gnu.org; Sat, 20 May 2017 09:08:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45603) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dC47J-0001Al-Rx for submit@debbugs.gnu.org; Sat, 20 May 2017 09:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dC47D-00059Y-U7 for submit@debbugs.gnu.org; Sat, 20 May 2017 09:08:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dC47D-00059U-Qp for submit@debbugs.gnu.org; Sat, 20 May 2017 09:08:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dC47C-0001mO-Nx for bug-gnu-emacs@gnu.org; Sat, 20 May 2017 09:08:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dC479-00058g-CX for bug-gnu-emacs@gnu.org; Sat, 20 May 2017 09:08:14 -0400 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:33353) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dC479-00058T-5a for bug-gnu-emacs@gnu.org; Sat, 20 May 2017 09:08:11 -0400 Received: by mail-pf0-x236.google.com with SMTP id e193so51755448pfh.0 for ; Sat, 20 May 2017 06:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=Y77WoubK248MQjxhXU/QVpvA46mbV4gNe4ll95T3bs0=; b=UI9BVdpjme4ul7fJffzE6Z23TUtSTfMrgnwoFGPdw8ffzPV5aqhMJmfz9CLUIRXbYy h7+ZtQF2k+TAfrrGcEHbZ6++80ZqYLiCFYGwMSjOjS283+LH2GdPL+DoY5cAQXW88uSv VIwUPQzwntmsZr7S2I8qZrJf6zFWvo/fk7zZmnFJQO4WG0b5F34lcJ2sQF8EXYnJqow8 0195zfxMZWiYoXdXxPRaxBBGyg/ug243sCKtoctutFq/OBHoftL0IIEkruD6lg1Phdnr 2d+QosEX2zP714ue1sfphnzVeCTKlIpLhL36d7KNqsfkOfqYFnJxAFzyRj/H9hMSAeGV eLnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Y77WoubK248MQjxhXU/QVpvA46mbV4gNe4ll95T3bs0=; b=hgHVZFsLiO+hRu0Zt2wk4hWHj1IpnSDZlsjs4rEMYb4ZJiHZoNcuTfr+3aULJaUw+u okpQewvN0sMIytjk7vrOOQd+j1KETJhcI6whmqLADeQPKuLn0UaRe13LM63wAaXi6PH3 cD3Dqbk4aTY6JfVnDCFPhntlXdskUr3enj+CluK8MQ8oRd6xjZCgeZGhA/lxs59/k9Oj 0PwM6l6PWfRL/p8i+Gq/sFGPz63hobs71MsqvZvpkXKITzgVraOds3ZYcMwTUExXp3xw EyxrW3opWq8NtJmWR3yc5XcolHUwMOSELZqOUrv1tc0+aN2/jJo/bOcrjgTI8xPWreR/ 9SHg== X-Gm-Message-State: AODbwcC5SHcJuqcrlyDQHF3t10rPoupcSKoA/XtBTcU1EgSwmc6Mj4de YFcxp5r/+iEN14va X-Received: by 10.99.181.25 with SMTP id y25mr15252303pge.192.1495285689860; Sat, 20 May 2017 06:08:09 -0700 (PDT) Received: from calancha-pc (222.139.137.133.dy.bbexcite.jp. [133.137.139.222]) by smtp.gmail.com with ESMTPSA id b24sm26129948pfm.17.2017.05.20.06.08.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 May 2017 06:08:09 -0700 (PDT) From: Tino Calancha To: bug-gnu-emacs@gnu.org Subject: 26.0.50; Elint reports false 'undefined function' errors Date: Sat, 20 May 2017 22:08:05 +0900 Message-ID: <87o9un3ccq.fsf@calancha-pc> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit 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: -4.0 (----) Write a file /tmp/foo.el with contents: --8<-----------------------------cut here---------------start------------->8--- (defun foo-find () (require 'find-lisp) (find-lisp-find-files default-directory "\\`foo.*")) --8<-----------------------------cut here---------------end--------------->8--- emacs -Q /tmp/foo.el M-x elint-current-buffer RET ;; It shows: foo-fail.el:1:Error: Call to undefined function: find-lisp-find-files Same if you wrap `find-lisp-find-files' call inside `with-no-warnings', even if you wrote before the function definition: (declare-function 'find-lisp-find-files "find-lisp" (directory regexp)) This is a false alarm: when `foo-find' is called `find-lisp-find-files' is called right after (require 'find-lisp) so that it's already defined. It would be good if elint is smarter so that it does not report these cases. In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) Repository revision: 6c7bf039e9c2e6daf548a95204740eeaf4c61abd From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 08:15:11 2020 Received: (at 27006) by debbugs.gnu.org; 12 Dec 2020 13:15:11 +0000 Received: from localhost ([127.0.0.1]:44158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko4jv-0000Ch-8S for submit@debbugs.gnu.org; Sat, 12 Dec 2020 08:15:11 -0500 Received: from quimby.gnus.org ([95.216.78.240]:46976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko4jt-0000Bz-Vd for 27006@debbugs.gnu.org; Sat, 12 Dec 2020 08:15:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yb23kUjjkQ/mgsAfdkg31OziJceVn8SZHyqsDB8OoXI=; b=HQRiKjRivD6WNxbeYV3vpad2AC Y5hqsBxZdrp70HPEsjyfgpkxPfXbPQnR68OdP+ZO6d7V7dtEXQ6Cn685R4bnkLFoVAmnN/XojD0CY jT0gqoSGFf1QXgdykMYBo9+PFNpxOo+G7/kUFDA+gwA2idRllq80GDaO5uCJF4Ftn3M8=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ko4ji-0006EC-N3; Sat, 12 Dec 2020 14:15:03 +0100 From: Lars Ingebrigtsen To: Tino Calancha Subject: Re: bug#27006: 26.0.50; Elint reports false 'undefined function' errors References: <87o9un3ccq.fsf@calancha-pc> X-Now-Playing: Squarepusher's _Be Up A Hello_: "Mekrev Bass" Date: Sat, 12 Dec 2020 14:14:57 +0100 In-Reply-To: <87o9un3ccq.fsf@calancha-pc> (Tino Calancha's message of "Sat, 20 May 2017 22:08:05 +0900") Message-ID: <87ft4b414e.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tino Calancha writes: > Write a file /tmp/foo.el with contents: > > (defun foo-find () > (require 'find-lisp) > (find-lisp-find-files default-directory "\\`foo.*")) > > emacs -Q /tmp/foo.el > > M-x elint-current-buffer RET [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 27006 Cc: 27006@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 (-) Tino Calancha writes: > Write a file /tmp/foo.el with contents: > > (defun foo-find () > (require 'find-lisp) > (find-lisp-find-files default-directory "\\`foo.*")) > > emacs -Q /tmp/foo.el > > M-x elint-current-buffer RET > ;; It shows: > foo-fail.el:1:Error: Call to undefined function: find-lisp-find-files I've now made elint in Emacs 28 load files that are `require'd, which seems to fix this problem. I've next to no experience using elint, though, so somebody please let me know if the leads to any problems. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 12 08:15:14 2020 Received: (at control) by debbugs.gnu.org; 12 Dec 2020 13:15:14 +0000 Received: from localhost ([127.0.0.1]:44160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko4jy-0000Cu-HH for submit@debbugs.gnu.org; Sat, 12 Dec 2020 08:15:14 -0500 Received: from quimby.gnus.org ([95.216.78.240]:46976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ko4ju-0000Bz-NY for control@debbugs.gnu.org; Sat, 12 Dec 2020 08:15:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yvILA6aSOuO3Vwps+3t0hZU0F7mA2/GzLeV1o14yX4M=; b=YTp3VNVl4i5SbhIyWB+s4OeR5N Z6+PJWPKAlNRQWMwhuM1Igf8njjaLclSWxa05qIoGybkcwW0UOQnOHnoVgEO+3tfZJ6dd8r/BxjrG v8RTuBTZy0HWJgMes6ryem/Mq3D3bFy+ye7756OuilwEnfL78fKUgGqcSfQmk1jLK5Mo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ko4js-0006EQ-3h for control@debbugs.gnu.org; Sat, 12 Dec 2020 14:15:10 +0100 Date: Sat, 12 Dec 2020 14:15:07 +0100 Message-Id: <87eejv4144.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #27006 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 27006 fixed close 27006 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 27006 fixed close 27006 28.1 quit From unknown Sun Aug 17 09:09:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 10 Jan 2021 12:24:04 +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