From: Andreas Rottmann Subject: Fix `show' REPL meta-command * module/system/repl/command.scm (warranty, copying, version): Use `define-meta-command' to define these procedures, so they are entered into the *command-infos* table. --- module/system/repl/command.scm | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/module/system/repl/command.scm b/module/system/repl/command.scm index 2897b9b..d4b3e4a 100644 --- a/module/system/repl/command.scm +++ b/module/system/repl/command.scm @@ -311,19 +311,23 @@ Without any argument, a list of topics is displayed." (else (format #t "Bad arguments: ~A~%" args)))) -(define (warranty repl) +;;; `warranty', `copying' and `version' are "hidden" meta-commands, only +;;; accessible via `show'. They have an entry in *command-infos* but not +;;; in *command-table*. + +(define-meta-command (warranty repl) "show warranty Details on the lack of warranty." (display *warranty*) (newline)) -(define (copying repl) +(define-meta-command (copying repl) "show copying Show the LGPLv3." (display *copying*) (newline)) -(define (version repl) +(define-meta-command (version repl) "show version Version information." (display *version*) -- tg: (074c414..) t/fix-show-meta-commands (depends on: master)