unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* small bugfix to (scripts read-text-outline)
@ 2021-12-04 11:54 Thien-Thi Nguyen
  0 siblings, 0 replies; only message in thread
From: Thien-Thi Nguyen @ 2021-12-04 11:54 UTC (permalink / raw)
  To: guile-devel


[-- Attachment #1.1: Type: text/plain, Size: 61 bytes --]


Please find attached a small bugfix against ‘master’:

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Fix-bug-Use-a-mutable-pair-for-mutable-pair-work.patch --]
[-- Type: text/x-diff, Size: 1064 bytes --]

From b8de6f77f8fdfee3e0833f976f1add6a99b98ca5 Mon Sep 17 00:00:00 2001
From: Thien-Thi Nguyen <ttn@gnuvola.org>
Date: Sat, 4 Dec 2021 06:46:36 -0500
Subject: [PATCH] Fix bug: Use a mutable pair for mutable pair work

* module/scripts/read-text-outline.scm (make-text-outline-reader):
  Instead of '(start), use (list 'start).
---
 module/scripts/read-text-outline.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/scripts/read-text-outline.scm b/module/scripts/read-text-outline.scm
index d0933bb0b..0a82949a4 100644
--- a/module/scripts/read-text-outline.scm
+++ b/module/scripts/read-text-outline.scm
@@ -187,7 +187,7 @@ (define (make-text-outline-reader re specs)
   (let ((parse-line (make-line-parser re specs)))
     ;; retval
     (lambda (port)
-      (let* ((all '(start))
+      (let* ((all (list 'start))
              (pchain (list)))           ; parents chain
         (let loop ((line (read-line port))
                    (prev-level -1)      ; how this relates to the first input
-- 
2.30.2


[-- Attachment #1.3: Type: text/plain, Size: 538 bytes --]


If it's okay w/ the maintainers, i can apply it shortly
(presuming my SSH key on savannah still works!).

IWBN to bubble this fix back to other branches.

-- 
Thien-Thi Nguyen -----------------------------------------------
 (defun responsep (query)               ; (2021) Software Libero
   (pcase (context query)               ;       = Dissenso Etico
     (`(technical ,ml) (correctp ml))
     ...))                              748E A0E8 1CB8 A748 9BFA
--------------------------------------- 6CE4 6703 2224 4C80 7502


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 219 bytes --]

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-04 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-04 11:54 small bugfix to (scripts read-text-outline) Thien-Thi Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).