unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: guile-devel@gnu.org
Subject: small bugfix to (scripts read-text-outline)
Date: Sat, 04 Dec 2021 06:54:13 -0500	[thread overview]
Message-ID: <875ys4vb4q.fsf@gnuvola.org> (raw)


[-- 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 --]

                 reply	other threads:[~2021-12-04 11:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875ys4vb4q.fsf@gnuvola.org \
    --to=ttn@gnuvola.org \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).