From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Blake Shaw Newsgroups: gmane.lisp.guile.devel Subject: [PATCH v1 2/6] docs/match: rm unquote-splicing as it interferes with textinfo Date: Fri, 27 Jan 2023 01:57:57 +0700 Message-ID: <20230126185801.19064-2-blake@reproduciblemedia.com> References: <20230126185801.19064-1-blake@reproduciblemedia.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22838"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Blake Shaw To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Jan 27 02:44:09 2023 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 1pLDmg-0005dO-8H for guile-devel@m.gmane-mx.org; Fri, 27 Jan 2023 02:44:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLDmM-0004WN-I4; Thu, 26 Jan 2023 20:43:46 -0500 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 1pL7SC-0008SC-UM for guile-devel@gnu.org; Thu, 26 Jan 2023 13:58:32 -0500 Original-Received: from out2.migadu.com ([2001:41d0:2:aacc::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pL7S9-0007MR-Pg for guile-devel@gnu.org; Thu, 26 Jan 2023 13:58:32 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=reproduciblemedia.com; s=key1; t=1674759506; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gm++SA+1O+MKkGAX4O24Xx2AsBBuoolYZFPmxHSgBL8=; b=ZKrV+jr7GVCleel3/4CfoKt0QHWzLuRZI/fN3ea3nvTiYgRLZMX7V+p4NArbdWDgVP9Bx9 64bGdSjIoVTtkP52JO5uI+2PDIza791TjQ8rBQhz2pHKRLkSKsGlQAOlEtiiFgPvQssbaB c87h7SOfDXgPKoMsvOQcc6HoSj2Pqy8= In-Reply-To: <20230126185801.19064-1-blake@reproduciblemedia.com> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=blake@reproduciblemedia.com; helo=out2.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 26 Jan 2023 20:43:44 -0500 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:21640 Archived-At: don't know how to fix this rn, but... --- doc/ref/match.texi | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/ref/match.texi b/doc/ref/match.texi index 105150886..c5017e1a5 100644 --- a/doc/ref/match.texi +++ b/doc/ref/match.texi @@ -80,10 +80,10 @@ Patterns can be composed and nested. For instance, @code{...} times in a list: @example -(match '(((a b c) e f g) 1 2 3) - (((head ...) tails ...) - `(,@tails ,head))) -@result{} (1 2 3 ((a b c) e f g)) +(match lst + (((heads tails ...) ...) + heads)) +@result{} @end example @noindent @@ -97,10 +97,11 @@ A pattern matcher can match an object against several patterns and extract the elements that make it up. @example -(let ((m '((a . b) (c . d) (e . f)))) +(let ((m '((l1 . r1) (l2 . r2) (l3 . r3)))) (match m - (((left . right) ...) left))) -@result{} (a c e) + (((left . right) ...) + (list left right)))) +@result{} ((l1 l2 l3) (r1 r2 r3)) @end example @example -- 2.39.1