From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Fix org.el compilation warnings Date: Fri, 26 May 2017 16:45:53 -0400 Message-ID: <87o9ufe48u.fsf@kyleam.com> References: <87mva0v66x.fsf@kyleam.com> <87inkouy4f.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEM7V-0005Ry-Do for emacs-orgmode@gnu.org; Fri, 26 May 2017 16:46:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEM7R-00056q-81 for emacs-orgmode@gnu.org; Fri, 26 May 2017 16:46:01 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:61694 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dEM7Q-00056D-Kv for emacs-orgmode@gnu.org; Fri, 26 May 2017 16:45:56 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Kaushal Modi , emacs-org list Kaushal Modi writes: >> Ah, right ... 'make compile' uses a single Emacs instance, while 'make >> single' uses a separate Emacs instance for each file. > > I wasn't even doing that. I was doing M-x byte-compile-file and selecting > org.el. Sure, I was just noting why I didn't see the org-agenda-include-inactive-timestamps warning when I ran 'make compile'. . > That gives me (without applying your patch): > > Compiling file > /home/kmodi/stow/pub_dotfiles/emacs/dot-emacs.d/elisp/org-mode/lisp/org.el > at Fri May 26 14:04:52 2017 > > In org-goto-map: > org.el:7412:9:Warning: function org-goto-map used to take 0+ arguments, n= ow > takes 0 > > In org-todo: > org.el:12398:12:Warning: function org-todo used to take 0+ arguments, now > takes 0-1 > > In org-store-log-note: > org.el:13635:8:Warning: function org-store-log-note used to take 0+ > arguments, > now takes 0 > > In org-at-timestamp-p: > org.el:17909:40:Warning: reference to free variable > =E2=80=98org-agenda-include-inactive-timestamps=E2=80=99 > > In org-self-insert-command: > org.el:19910:32:Warning: function org-self-insert-command used to take 0+ > arguments, now takes 1 > > So.. should we consider the warnings output by simple byte-compile-file? When I run byte-compile-file on org.el (no Org loaded, with master's Org first on the load-path), I don't see any of the above warnings aside from the one for org-agenda-include-inactive-timestamps, which is fixed by the patch. And because running byte-compile-file from an Emacs instance is affected by what's already been loaded, I think it's better to focus on the output of 'make single'. --=20 Kyle