From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Byte-compiler warnings for todo-mode.el Date: Mon, 06 Aug 2018 11:32:28 -0400 Message-ID: References: <87zhy0fs69.fsf@gmx.net> <8736vrop69.fsf@gmx.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1533569644 14647 195.159.176.226 (6 Aug 2018 15:34:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2018 15:34:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 06 17:34:00 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fmhW9-0003cp-92 for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 17:33:57 +0200 Original-Received: from localhost ([::1]:34711 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmhYF-0005jZ-QQ for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 11:36:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmhUy-0002tx-Jm for emacs-devel@gnu.org; Mon, 06 Aug 2018 11:32:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmhUt-0000bw-KN for emacs-devel@gnu.org; Mon, 06 Aug 2018 11:32:44 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:53706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmhUt-0000bf-F9 for emacs-devel@gnu.org; Mon, 06 Aug 2018 11:32:39 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w76FWTKN025622; Mon, 6 Aug 2018 11:32:30 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id A5596AE0E4; Mon, 6 Aug 2018 11:32:28 -0400 (EDT) In-Reply-To: <8736vrop69.fsf@gmx.net> (Stephen Berman's message of "Mon, 06 Aug 2018 10:49:18 +0200") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6345=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6345> : inlines <6798> : streams <1794724> : uri <2684867> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:228226 Archived-At: > ...starting emacs -Q with the above code and my ~/.emacs.d/todo/ > directory, typing `F f' in todo-mode prompts for a filtered items file > and repeating M-n brings up all and only the names of my filtered items > files in the minibuffer, i.e., all and only the elements of sfnlist. No, M-n gives you the elements of falist. Try M-p >>> The warning can be prevented with (eval-and-compile (require 'hl-line)). >> This ideally shouldn't remove the warning (i.e. if it does, as you say, >> then it's probably the result of a bug or misfeature in the compiler). > When I replace the above if-sexp with this: > (when (and (eval-and-compile (require 'hl-line)) hl-line-mode) > (hl-line-highlight)) > and byte-compile the file in emacs -Q, Emacs does not produce the > warning. Should I make a bug report? Sorry, I thought you had written eval-when-compile. With eval-and-compile it's normal and correct that the warning disappears. Stefan