From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#30635: No compiler warning if code forgets to require cl-lib Date: Tue, 27 Feb 2018 13:45:57 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519757114 14338 195.159.176.226 (27 Feb 2018 18:45:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Feb 2018 18:45:14 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) To: 30635@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 27 19:45:10 2018 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 1eqkFR-0003O9-Gp for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Feb 2018 19:45:09 +0100 Original-Received: from localhost ([::1]:39385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqkHT-0006dd-Li for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Feb 2018 13:47:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqkHJ-0006cU-JJ for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqkHG-0002xw-JL for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:47:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqkHG-0002xZ-EW for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eqkHG-0005hh-5q for bug-gnu-emacs@gnu.org; Tue, 27 Feb 2018 13:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Feb 2018 18:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30635 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151975716521855 (code B ref -1); Tue, 27 Feb 2018 18:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Feb 2018 18:46:05 +0000 Original-Received: from localhost ([127.0.0.1]:35961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqkGK-0005gR-Vy for submit@debbugs.gnu.org; Tue, 27 Feb 2018 13:46:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqkGK-0005fj-3k for submit@debbugs.gnu.org; Tue, 27 Feb 2018 13:46:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqkGE-00024j-0X for submit@debbugs.gnu.org; Tue, 27 Feb 2018 13:45:58 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqkGD-00024d-TB for submit@debbugs.gnu.org; Tue, 27 Feb 2018 13:45:57 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eqkGD-0006Gt-Hw; Tue, 27 Feb 2018 13:45:57 -0500 X-Spook: Janet Reno Waco, Texas Ft. Bragg keyhole bootleg X-Ran: F#;Zq$#C!Z:>Ug'Z][myDPz(+Z']lC%_%G7%uFvKWx|!uaW9zvIhuhFi=h_3+X,~k@8/0X X-Hue: black X-Attribution: GM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:143717 Archived-At: Package: emacs Version: 26.0.91 There's no compiler warning if a library uses cl-lib without requiring it. I assume this is because bytecomp.el requires cl-lib. Perhaps bytecomp can track cl-lib specially to work around this. (I was wondering how the problem shown in 6288c3d went unspotted.) Example: foo.el: (defun foo () (cl-member-if 'cl-evenp '(1 2 3))) emacs -Q -batch -f batch-byte-compile foo.el -> silently succeeds emacs -Q -l foo.elc M-: (foo) -> void-function cl-member-if