1. Byte-compiling a file nero.bug.el on gnu/linux containing only the following two defvars:
(defvar nero-link-regexp "\\[\\([0-9]+\\)\\]" "Regular expression that tells nero what links look like. The first parenthesized subexpression is the unique string denoting the webpage to load, which will sought among the references.") (defvar nero-font-lock-keywords (eval-when-compile (list `(,nero-link-regexp . font-lock-keyword-face))) "Font lock for `nero-mode'. Currently, only numbered links are fontified.") Generates the following error in *Messages*: *Messages* buffer Compiling file /eng/eng10/ascott/nero.bug.el at Fri Mar 25 16:23:40 2005 Entering directory `/eng/eng10/ascott/' nero.bug.el:9:31:Error: Symbol's value as variable is void: nero-link-regexp 2. The author of the nero.el package supplied the following update to the 2nd defvar (removing the eval-when-compile), eliminating my byte-compile error: (defvar nero-font-lock-keywords (list `(,nero-link-regexp . font-lock-keyword-face)) "Font lock for `nero-mode'. Currently, only numbered links are fontified.") 3. Question: Is there an explanation of a. Why the package author wasn't seeing the original file byte-compile error with a recent CVS snapshot on MacOS, yet I was on gnu/linux? b. How the fix/workaround works? Thanks, Andy Scott In GNU Emacs 22.0.50.1 (i686-pc-linux-gnu, X toolkit) of 2005-03-25 on chlr4920 Distributor `The XFree86 Project, Inc', version 11.0.40300000 configured using `configure '--prefix=/stor/garray/linux' '--x-includes=/usr/intel/pkgs/X11/R6.7.0/include' '--x-libraries=/usr/intel/pkgs/X11/R6.7.0/lib' 'CC=gcc' 'CFLAGS=-O2 -I/usr/intel/pkgs/X11/R6.7.0/include -L/usr/intel/pkgs/X11/R6.7.0/lib -I/usr/intel/pkgs/zlib/1.2.1/include -L/usr/intel/pkgs/zlib/1.2.1/lib -I/usr/intel/pkgs/ncurses/5.4/include -L/usr/intel/pkgs/ncurses/5.4/lib -I/usr/intel/pkgs/libungif/4.1.3/include -L/usr/intel/pkgs/libungif/4.1.3/lib -I/usr/intel/pkgs/libpng/1.0.16rc1/include -L/usr/intel/pkgs/libpng/1.0.16rc1/lib -I/usr/intel/pkgs/jpeg/6b/include -L/usr/intel/pkgs/jpeg/6b/lib' 'LDFLAGS=-L/usr/intel/pkgs/X11/R6.7.0/lib -L/usr/intel/pkgs/zlib/1.2.1/lib -L/usr/intel/pkgs/ncurses/5.4/lib -L/usr/intel/pkgs/libungif/4.1.3/lib -L/usr/intel/pkgs/libpng/1.0.16rc1/lib -L/usr/intel/pkgs/jpeg/6b/lib -Wl,-rpath=/usr/intel/pkgs/X11/R6.7.0/lib:/usr/intel/pkgs/zlib/1.2.1/lib:/usr/intel/pkgs/ncurses/5.4/lib:/usr/intel/pkgs/libungif/4.1.3/lib:/usr/intel/pkgs/libp! ng/1.0.16rc1/lib:/usr/intel/pkgs/jpeg/6b/lib'' Important settings: value of $LC_ALL: en_US value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Major mode: Compilation Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t line-number-mode: t Recent messages: Loading font-lock...done Fontifying *Compile-Log*... (regexps..........................................) Loading font-lock...done Loading byte-opt...done Loading warnings...done Byte compile error for /eng/eng10/ascott/memo/emacs/nero.bug.el: t Mark set [2 times] Loading emacsbug...done _______________________________________________ Emacs-pretest-bug mailing list Emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug