summaryrefslogtreecommitdiff
path: root/module/ice-9/command-line.scm
AgeCommit message (Collapse)AuthorFilesLines
2024-10-12fix typo in commentArne Babenhauserheide1-1/+1
module/ice-9/command-line.scm (compile-shell-switches): fix typo
2024-10-12Redirect diagnostice output messages (e.g., auto-compiling code) to a newly ↵Matthew Wette1-0/+4
defined current-info-port, and add a command line argument `-I' to set the current-info-port to a void-port. * libguile/ports.c: add cur_infoport_fluid, scm_current_info_port, scm_set_current_info_port; define default current-info-port to stderr * libguile/load.c(compiled_is_fresh,load_thunk_from_path, do_try_auto_compile,scm_sys_warn_auto_compilation_enabled, scm_primitive_load_path): direct output messages to current_info_port; was current_warning_port * libguile/init.c(scm_init_standard_ports): set default current_info_port * module/ice-9/ports.scm: define current-info-port and set-current-info-port * module/ice-9/command-line.scm(*usage*,compile-shell-switches): add argument `-I' to silence diagnostics (or current-info-port to void-port) * doc/ref/guile-invoke.texi: add description for `-I' command argument
2024-01-24Bump user-visible copyright years to 2024.Ludovic Courtès1-2/+2
* module/ice-9/command-line.scm (version-etc): * module/scripts/compile.scm (show-version): * module/system/repl/common.scm (*version*): Bump to 2024.
2023-01-13Bump user-visible copyright years to 2023.Ludovic Courtès1-2/+2
* module/ice-9/command-line.scm (version-etc): * module/scripts/compile.scm (show-version): * module/system/repl/common.scm (*version*): Bump to 2023.
2022-02-11Bump user-visible copyright years to 2022Andy Wingo1-2/+2
* module/ice-9/command-line.scm (version-etc): * module/system/repl/common.scm (*version*): Bump to 2022.
2021-01-07Bump copyright years for user-visible copyright messagesv3.0.5Andy Wingo1-2/+2
* module/ice-9/command-line.scm (version-etc): * module/scripts/compile.scm (show-version): * module/system/repl/common.scm (*version*): Bump to 2021.
2020-01-13Bump user-visible copyright years to 2020Andy Wingo1-2/+2
* module/ice-9/command-line.scm (version-etc): * module/scripts/compile.scm (show-version): Bump to 2020.
2019-11-17Add R7RS documentation and --r7rs command-line optionwip-r7rsAndy Wingo1-0/+6
* doc/ref/Makefile.am: Add r7rs.texi. * doc/ref/guile-invoke.texi (Command-line Options): Document --r7rs. * doc/ref/guile.texi (Guile Modules): Link to R7RS. * doc/ref/intro.texi (Guile and Scheme): Update for R7RS support. * doc/ref/r7rs.texi: New file. * doc/ref/scheme-intro.texi (Guile Scheme): Update for R7RS. * module/ice-9/command-line.scm (*usage*, compile-shell-switches): Add --r7rs option.
2019-09-25Add --r6rs command-line optionAndy Wingo1-0/+6
* doc/ref/guile-invoke.texi (Command-line Options): Document --r6rs. * doc/ref/r6rs.texi (R6RS Incompatibilities): Mention that --r6rs calls install-r6rs!. * module/ice-9/command-line.scm (*usage*, compile-shell-switches): Implement --r6rs.
2019-09-12Use "G_" as the conventional alias for gettextAndy Wingo1-11/+11
Since the change in 2.2 noted in the NEWS as "Fix literal matching for module-bound literals", defining `_' makes `syntax-rules' and `match' fail to recognize `_' as the catch-all literal. This change adapts the recommendations to current practice in 2.2, as users have had to adapt to this change. * doc/ref/api-i18n.texi (Gettext Support): Update documentation. * module/language/tree-il/analyze.scm (proc-ref?, gettext?): G_ is the conventional abbreviation, not _. * test-suite/tests/tree-il.test: Adapt. * module/ice-9/command-line.scm: Use G_ instead of _.
2019-05-23Update user-visible copyright years.Mark H Weaver1-2/+2
* doc/ref/guile.texi: Update years in copyright notice. * module/ice-9/command-line.scm (version-etc): Update 'copyright-year'. * module/system/repl/common.scm (*version*): Update copyright years.
2018-08-07Update copyright years in '--version' and the manual.Ludovic Courtès1-2/+2
* module/ice-9/command-line.scm (version-etc): Change #:copyright-year to 2018. * doc/ref/guile.texi: Add 2017 and 2018 to the copyright years. * configure.ac (GUILE_CONFIGURE_COPYRIGHT): Add 2018.
2017-03-15Update --version and REPL copyright yearsAndy Wingo1-2/+2
* module/ice-9/command-line.scm (version-etc): * module/system/repl/common.scm (*version*): Update release year.
2016-05-22Bump user-visible copyright years to 2016.Mark H Weaver1-2/+2
* doc/ref/guile.texi: Add 2016 to user-visible copyright notice. * module/ice-9/command-line.scm (version-etc): Bump 'copyright-year' to 2016. * module/system/repl/common.scm (*version*): Add 2016 to the range of copyright years.
2016-05-22Bump user-visible copyright years to 2015.Mark H Weaver1-1/+1
* module/ice-9/command-line.scm (version-etc): Bump 'copyright-year' to 2015. * module/system/repl/common.scm (*version*): Add 2015 to the range of copyright years.
2015-01-22Merge commit 'ed72201a795ac1c8d6c0288b6bb710f2bd0ebd9c'Andy Wingo1-5/+7
Conflicts: test-suite/tests/r6rs-ports.test
2015-01-13Improve output of command-line errors.Ludovic Courtès1-5/+7
* module/ice-9/command-line.scm (shell-usage): Add 'newline' call when FMT is true. (compile-shell-switches)[error]: Prepend "error: " and append "~%" to FMT. Use a lower-case message.
2014-01-14Merge branch 'stable-2.0'Mark H Weaver1-2/+2
Conflicts: libguile/hash.c module/ice-9/psyntax-pp.scm module/ice-9/psyntax.scm test-suite/tests/r6rs-ports.test
2014-01-12Bump user-visible copyright years to 2014.Mark H Weaver1-2/+2
* doc/ref/guile.texi: Add 2014 to list of copyright years in @copying section. * module/ice-9/command-line.scm (version-etc): Bump 'copyright-year' to 2014. * module/system/repl/common.scm (*version*): Add 2014 to the range of copyright years.
2013-11-21No more VM objects visible to SchemeAndy Wingo1-1/+1
* libguile/vm.h: * libguile/vm.c (scm_the_vm): Don't expose to Scheme. (scm_vm_p): Remove, as it is not needed. * module/system/vm/vm.scm: Remove the-vm and vm? exports. * doc/ref/api-coverage.texi (Code Coverage): * test-suite/tests/coverage.test: * module/system/vm/coverage.scm (with-code-coverage): Don't take a VM argument. Adapt documentation and tests. * module/ice-9/command-line.scm: Remove the-vm autoload. * module/system/vm/trace.scm (trace-calls-to-procedure): (trace-calls-in-procedure): (trace-instructions-in-procedure): (call-with-trace): Remove #:vm kwarg, and adapt to trap changes. * module/system/vm/trap-state.scm (the-trap-state): Rework to use a parameter underneath instead of a weak key on (the-vm). * module/system/vm/traps.scm (new-disabled-trap): (new-enabled-trap): Remove vm argument. (trap-at-procedure-call): (trap-in-procedure): (trap-instructions-in-procedure): (trap-at-procedure-ip-in-range): (trap-at-source-location): (trap-frame-finish): (trap-in-dynamic-extent): (trap-calls-in-dynamic-extent): (trap-instructions-in-dynamic-extent): (trap-calls-to-procedure): (trap-matching-instructions): Remove vm keyword arguments. * test-suite/tests/control.test ("unwind"): Adapt test. * test-suite/tests/eval.test (test-suite): Remove the-vm import.
2013-11-21VM accessors take VM as implicit argument, not explicit argumentAndy Wingo1-1/+1
* libguile/vm.h: * libguile/vm.c: (scm_vm_apply_hook, scm_vm_push_continuation_hook, scm_vm_pop_continuation_hook, scm_vm_abort_continuation_hook, scm_vm_restore_continuation_hook, scm_vm_next_hook, scm_vm_trace_level, scm_set_vm_trace_level_x, scm_vm_engine, scm_set_vm_engine_x, scm_c_set_vm_engine_x): The VM argument is now implicit: the VM for the current thread. * doc/ref/api-debug.texi (VM Hooks): Try to adapt. * module/ice-9/command-line.scm: * module/statprof.scm: * module/system/vm/coverage.scm: * module/system/vm/trace.scm: * module/system/vm/trap-state.scm: * module/system/vm/traps.scm: * test-suite/tests/control.test: * test-suite/tests/eval.test: Adapt users that set hooks or ensure that we have a debug engine.
2013-04-06Bump 'copyright-year' to 2013.Mark H Weaver1-1/+1
* module/ice-9/command-line.scm (version-etc): Bump 'copyright-year' to 2013.
2013-03-30Add -C command-line option to adjust %load-compiled-path.Mark H Weaver1-1/+15
* module/ice-9/command-line.scm (compile-shell-switches): Implement -C option. (*usage*): Add -C option. * doc/ref/guile-invoke.texi (Command-line Options): Add docs.
2013-01-23fix regression in -lAndy Wingo1-1/+1
* module/ice-9/command-line.scm (compile-shell-switches): Fix regression with -l argument, which was loading arg0 instead.
2013-01-23load files from the command line relative to the cwdAndy Wingo1-1/+1
* module/ice-9/command-line.scm (load/lang): Load files from the command line relative to the current working directory (fixes regression).
2013-01-23add --language argumentAndy Wingo1-39/+74
* module/ice-9/command-line.scm (*usage*): Make usage of capitalization and sentences consistent (lower-case and semicolons, as in ls --help). Be less specific about languages (Scheme is the default but not the only language). Document --language. (load/lang, eval-string/lang): New helpers. (compile-shell-switches): Parse a --language argument, and use it to set (current-language).
2012-10-18Fix @@ usage in --listen optionIan Price1-8/+6
* module/ice-9/command-line.scm (compile-shell-switches): Fix usage of @@, which no longer supports arbitrary expressions, only identifiers.
2012-06-22update version-etc copyright yearAndy Wingo1-1/+1
* module/ice-9/command-line.scm (version-etc): Update copyright year to 2012.
2011-09-10Fix --listen option to allow other portsIan Price1-3/+3
* module/ice-9/command-line.scm (compile-shell-switches): Fix off-by-one error in 'substring', and swap branches of conditional.
2011-09-09Clarify `--debug' vs. `--no-debug'.Ludovic Courtès1-2/+2
* module/ice-9/command-line.scm (*usage*): Attempt to suggest that `--no-debug' doesn't inhibit debugging support. * doc/ref/guile-invoke.texi (Command-line Options): Make it clear that `--no-debug' doesn't inhibit debugging support. Reported by Manuel Serrano.
2011-04-28-x error message fixAndy Wingo1-1/+1
* module/ice-9/command-line.scm (compile-shell-switches): Fix error message for -x switch.
2011-04-28fix double-loading of script in -ds caseAndy Wingo1-12/+14
* module/ice-9/command-line.scm (compile-shell-switches): In the -ds case, we were erroneously loading the script twice. Fix that.
2011-04-15add --fresh-auto-compileAndy Wingo1-1/+7
* doc/ref/api-evaluation.texi (Compilation): Add discussion of --fresh-auto-compile. * doc/ref/scheme-scripts.texi (Invoking Guile): Add --fresh-auto-compile option. * NEWS: Add entry. * libguile/load.c: Define %fresh-auto-compile. (scm_primitive_load_path): Use it here. (scm_init_load_should_auto_compile): Init from GUILE_AUTO_COMPILE env var, with a value of "fresh". * module/ice-9/boot-9.scm (load-in-vicinity): Auto-compilation cache is stale if %fresh-auto-compile is true. * module/ice-9/command-line.scm (compile-shell-switches): Parse out --fresh-auto-compile.
2011-04-14fix embarrassing bugs in (ice-9 command-line)Andy Wingo1-3/+6
* module/ice-9/command-line.scm (compile-shell-switches): Whoops, fix a few cases that forgot to loop back to the beginning.
2011-04-14guile -v prints LGPLv3+.Andy Wingo1-0/+1
* module/ice-9/command-line.scm (compile-shell-switches): Though Guile may be distributed under the GPLv3, Guile is actually LGPLv3+.
2011-04-14add (ice-9 command-line)Andy Wingo1-0/+416
* module/ice-9/command-line.scm: New module for parsing Guile's command line, ported from script.c. Includes local eval-string implementation to make `guile -c 1' faster, by not having to load the compiler. * module/Makefile.am: Add to build.