From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: [PATCH v2 6/6] define-meta-command: mention effects of a missing category Date: Wed, 3 Jul 2024 12:02:15 -0500 Message-ID: <20240703170335.1003252-7-rlb@defaultvalue.org> References: <20240703170335.1003252-1-rlb@defaultvalue.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34112"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Jul 03 19:04:35 2024 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sP3PF-0008jr-PL for guile-devel@m.gmane-mx.org; Wed, 03 Jul 2024 19:04:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sP3OT-00073s-5M; Wed, 03 Jul 2024 13:03:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sP3OR-00073E-W4 for guile-devel@gnu.org; Wed, 03 Jul 2024 13:03:44 -0400 Original-Received: from defaultvalue.org ([45.33.119.55]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sP3OP-0004Kq-U0 for guile-devel@gnu.org; Wed, 03 Jul 2024 13:03:43 -0400 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id 89366204AA for ; Wed, 3 Jul 2024 12:03:39 -0500 (CDT) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id B264B14E0A2; Wed, 3 Jul 2024 12:03:35 -0500 (CDT) X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240703170335.1003252-1-rlb@defaultvalue.org> Received-SPF: pass client-ip=45.33.119.55; envelope-from=rlb@defaultvalue.org; helo=defaultvalue.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22540 Archived-At: module/system/repl/command.scm: add comment. --- module/system/repl/command.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/system/repl/command.scm b/module/system/repl/command.scm index ca7450610..8b0422dbd 100644 --- a/module/system/repl/command.scm +++ b/module/system/repl/command.scm @@ -235,6 +235,8 @@ (define-meta-command ((name category) repl () . datums) docstring b0 b1 ...)) + ;; These cases (with category #f) will only produce functional + ;; commands if the name is already in the *command-table*. ((_ (name repl (expression0 ...) . datums) docstring b0 b1 ...) (define-meta-command ((name #f) repl (expression0 ...) . datums) docstring b0 b1 ...)) -- 2.43.0