From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#27006: 26.0.50; Elint reports false 'undefined function' errors Date: Sat, 20 May 2017 22:08:05 +0900 Message-ID: <87o9un3ccq.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1495285761 10163 195.159.176.226 (20 May 2017 13:09:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 20 May 2017 13:09:21 +0000 (UTC) To: 27006@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 20 15:09:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dC489-0002Ox-F8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 May 2017 15:09:13 +0200 Original-Received: from localhost ([::1]:34278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dC48B-0001ox-Tw for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 May 2017 09:09:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dC481-0001od-Df for bug-gnu-emacs@gnu.org; Sat, 20 May 2017 09:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dC47y-0005U4-9M for bug-gnu-emacs@gnu.org; Sat, 20 May 2017 09:09:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53467) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dC47y-0005U0-5W for bug-gnu-emacs@gnu.org; Sat, 20 May 2017 09:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dC47y-0001Bt-19 for bug-gnu-emacs@gnu.org; Sat, 20 May 2017 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 May 2017 13:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27006 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14952857044528 (code B ref -1); Sat, 20 May 2017 13:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 May 2017 13:08:24 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132673 Archived-At: 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