[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 5e43955 1/2: Don't declare vc-exec-after anymor
From: |
Eli Zaretskii |
Subject: |
Re: [Emacs-diffs] master 5e43955 1/2: Don't declare vc-exec-after anymore |
Date: |
Thu, 22 Oct 2015 18:04:39 +0300 |
> From: Dmitry Gutov <address@hidden>
> Date: Thu, 22 Oct 2015 15:08:37 +0300
> Cc: emacs-devel <address@hidden>
>
> address@hidden:\...\vc> for %i in (svn mtn hg cvs git bzr) do emacs
> -batch -Q
> -f batch-byte-compile vc-%i.el
>
> In end of data:
> vc-mtn.el:378:1:Warning: the function `vc-exec-after' might not be
> defined at
> runtime.
>
> No direct calls to vc-exec-after appear in any of these files anymore. All of
> them call vc-run-delayed, yet, as you say, the warning is displayed only when
> compiling some of them.
FWIW, on my system I see that warning with all the vc-*.el files that
call vc-run-delayed. The only exception is vc-svn.el, and the reason
is this single line:
(autoload 'vc-expand-dirs "vc")
If you remove it, the warning will appear in vc-svn.el as well.
(Loading vc loads vc-dispatcher as a side effect.)
Another data point: replace this:
(eval-when-compile (require 'vc))
with this:
(require 'vc)
and the warning also goes way. So evidently there's some difference
between these two, or maybe a byte-compiler bug.