XEmacs and APEL
Shuhei KOBAYASHI
shuhei @ aqua.ocn.ne.jp
2002年 7月 29日 (月) 20:56:20 JST
Katsumi Yamaoka <yamaoka @ jpl.org> writes:
> APEL に yamaoka-maybe という枝を作って、以下のものを入れてみました。
| emacs --batch --funcall batch-byte-compile pym.el
[...]
| !! Symbol's value as variable is void ((def*-maybe-enable-compile-time-hack))
def*-maybe-enable-compile-time-hack が未定義で error になると思うのですが
どうでしょうか?
この変数の対策だけならこんな感じ.
;;; Hack for "old" byte-compiler; we can't use `eval-and-compile' here.
(require
(progn
(defvar def*-maybe-enable-compile-time-hack nil
"If non-nil, `def*-maybe' macros will do compile-time check.
`def*-maybe' macro normally checks existence of its target function or
variable at load-time. But if this variable is non-nil at compile-time,
existence of its target is first checked at compile-time, and if exists,
it will emit no compiled code at all!
You should set this variable to non-nil only when you really know what
you are doing.")
(provide 'pym-compile)))
pym.el 全体を先に load してしまうとしたらこれ.
;;; preload "pym.el" at compile-time.
;; `provide' is evaluated at load-time only.
(provide 'pym-compile)
;; `require' is evaluated at compile-time as well as load-time.
(require 'pym-compile "pym.el")
たぶん前者で十分だと思います.
--
Shuhei KOBAYASHI
More information about the APEL-ja
mailing list