libguile and module/ice-9: Introduce %quiet-auto-compile

This patch uses a new value for GUILE_AUTO_COMPILE to suppress
compilation announcements.  By setting

GUILE_AUTO_COMPILE=quiet

all the usual chatter

;;; note: source file foo.scm
;;;       newer than compiled CCACHE/3.0-LE-8-4.7foo.scm.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling foo.scm
;;; compiled CCACHE/3.0-LE-8-4.7foo.scm.go

disappears.  I would have used a command-line switch, but this was hard
enough, and -q is already taken.  

For the record, messages emitted by load.c::compiled_is_fresh() are
not affected by this patch.  

ChangeLog:

        * libguile/load.c: Define scm_loc_quiet_auto_compile.
        (scm_init_load): Initialize as false.
        (scm_init_load_should_auto_compile): Set
         scm_loc_quiet_auto_compile to SCM_BOOL_T if
         GUILE_AUTO_COMPILE is "quiet".  Use strcmp consistently.
        * module/ice-9/boot-9.scm (load-in-vicinity): Defeat messages
        if %quiet-auto-compile is true.

Attachment: 0001-introduce-quiet-auto-compile.patch
Description: Binary data

Reply via email to