From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: Byte-compiler warnings for todo-mode.el Date: Mon, 06 Aug 2018 18:30:55 +0200 Message-ID: <87lg9jmp8g.fsf@rub.de> 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 1533572981 21772 195.159.176.226 (6 Aug 2018 16:29:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Aug 2018 16:29:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 06 18:29:37 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 1fmiO0-0005YN-R4 for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 18:29:36 +0200 Original-Received: from localhost ([::1]:35019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmiQ7-0008WD-IN for ged-emacs-devel@m.gmane.org; Mon, 06 Aug 2018 12:31:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fmiPV-0008Vw-Ho for emacs-devel@gnu.org; Mon, 06 Aug 2018 12:31:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fmiPR-0003TU-EF for emacs-devel@gnu.org; Mon, 06 Aug 2018 12:31:09 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:55493) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fmiPR-0003Sz-3X for emacs-devel@gnu.org; Mon, 06 Aug 2018 12:31:05 -0400 Original-Received: from rosalinde ([178.6.151.192]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LqiJO-1gQyqR0hOM-00eHqV; Mon, 06 Aug 2018 18:30:57 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 06 Aug 2018 11:32:28 -0400") X-Provags-ID: V03:K1:rJGVWp+G0FTFij9tR4ZpissY2DuNuzU4TxGbz268mvkzy3JvCrD ve0/zLiwD/K+K3iJwG7tI4XCvDKNE8Q8M/iFSlY8cbXoG/hsuXY3ajq1LUBms2+zEZaloy0 Iue4N5dYbGSSrEga4UKNyBMXmbFnk2CjtXPErIRxAnaZpegibrKhvH36Tjtomg5G6JSxFTy q6wtssl3E767dU4nq9lZQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:xVlh4UEjBeA=:vnNTeXYaQOVSWlOgOR22rU q6RMlGHx5HV8rgME17RYBUpSRBuB9zOpWLceoseNMlMjQeDWDU+v2F/qrrFovE/axoZ99PzhM s0h6bRUvQ0PjsfuTPdl+pD32TiI6r43gIfn2oiME/+4MsskBNLNkxAFcMeFkSKZl9k+LF7Nn1 OGwlHXgu2yeCrqGsqLd7W2xIW5PQ+rKJDU5H5jVxISDtIuKhpkUvr8ugyAHNUppuvUlgBErim EBsCNTTVHqWU4xFDMw5Z3ayXH2l5E7Ci2LeX0/LZrRcnVVoFQRWWnZE0wMjFbTmAQL8lpr5Il yjhrFr/IxuySL8TiAy0xsvS09XlnvOTKTPIbMSeJKeZekpaWG64xtp5XtYI1KSF7Ibj+IxWZX 6ft6o4KQUi/vkm5qCLj4Fl6mxCRthcpu4gczv3mU4toQbgbWCeAUigmIKVQfTbKfLeW4vPhLy lCnxGf3fsdgsplLIhbgZucfr5PVkpQ1f8kNd2GjTcvrXL7XQVTsJq/uaRv4seqqyb1KhN+Qd5 h6D8X8sI4CFr1eDW3IU0MT2HF86jjAPcW1S7bioUrjut2wd61MeZTC9cgH8wVVuViLha5orF0 p1CgQIK6sHVD+Ova1w0fvjUytPwJF8XPTTn+GAhFbCQkgj/plVS7J+anYpDSsXBit9QpD9178 cxxonZDM2aUb0A7t+UUtc+vW2idSIjbyC9I74Aprk6sVJdzr9BCXwnzCryv+bezTfutmH38hS 54lbQZq8eIWDMxUVADZFbiGcp1j7XI5/gjzK3Ho5Yrlm6/B7E6Ws9evzN7E7q/RA+OLxyMgc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.15 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:228233 Archived-At: On Mon, 06 Aug 2018 11:32:28 -0400 Stefan Monnier wrote: >> ...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 (M-n actually shows the cars of the elements of falist.) I see now that I was unaware that M-n shows the list of default values if the history is empty (the doc string doesn't say this but the Emacs manual does), so I was laboring under a mistaken understanding. Thanks for making me see the light. > BTW, what this also means is that you shouldn't pre-populate sfnlist > with the elements of falist. Instead, call it todo--something-history, > make it a global variable, and don't touch it yourself at all. Yes, this works well, thanks. >>>> 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. Ah, ok. Steve Berman