GNU bug report logs - #75364
Manual: Alist example does not work

Previous Next

Package: guile;

Reported by: Jens Egon Nyborg <jens <at> puggaard-nyborg.dk>

Date: Sat, 4 Jan 2025 17:47:05 UTC

Severity: normal

Done: lloda <lloda <at> sarc.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75364 in the body.
You can then email your comments to 75364 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#75364; Package guile. (Sat, 04 Jan 2025 17:47:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jens Egon Nyborg <jens <at> puggaard-nyborg.dk>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sat, 04 Jan 2025 17:47:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jens Egon Nyborg <jens <at> puggaard-nyborg.dk>
To: bug-guile <at> gnu.org
Subject: Manual: Alist example does not work
Date: Sat, 4 Jan 2025 16:59:15 +0100
[Message part 1 (text/plain, inline)]
I run

(define capitals '(("New York" . "Albany")
                   ("Oregon"   . "Salem")
                   ("Florida"  . "Miami")))

followed by

(set! capitals
      (assoc-set! capitals "Florida" "Tallahassee"))

and get

"ice-9/boot-9.scm:1676:22: In procedure raise-exception:
In procedure set-cdr!: Wrong type argument in position 1 (expecting 
mutable pair): ("Florida" . "Miami")

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue."


(In geiser in emacs on Arch)

Warning: In my own code it actually worked on and off.

Work-around: Use

(define capitals (list (cons "New York"  "Albany")
                       (cons "Oregon"   . "Salem")
                       (cons "Florida"  . "Miami")))

apparently quoted lists are not mutable!
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#75364; Package guile. (Sat, 04 Jan 2025 21:28:01 GMT) Full text and rfc822 format available.

Message #8 received at 75364 <at> debbugs.gnu.org (full text, mbox):

From: dsmich <at> roadrunner.com
To: "'Jens Egon Nyborg'" <jens <at> puggaard-nyborg.dk>
Cc: "'75364 <at> debbugs.gnu.org'" <75364 <at> debbugs.gnu.org>
Subject: RE: bug#75364: Manual: Alist example does not work
Date: Sat, 04 Jan 2025 21:27:23 +0000
[Message part 1 (text/plain, inline)]
From: "Jens Egon Nyborg" 

	> apparently quoted lists are not mutable!

	True

	-Dale

[Message part 2 (text/html, inline)]

Reply sent to lloda <lloda <at> sarc.name>:
You have taken responsibility. (Sat, 04 Jan 2025 23:35:02 GMT) Full text and rfc822 format available.

Notification sent to Jens Egon Nyborg <jens <at> puggaard-nyborg.dk>:
bug acknowledged by developer. (Sat, 04 Jan 2025 23:35:02 GMT) Full text and rfc822 format available.

Message #13 received at 75364-done <at> debbugs.gnu.org (full text, mbox):

From: lloda <lloda <at> sarc.name>
To: Jens Egon Nyborg <jens <at> puggaard-nyborg.dk>
Cc: 75364-done <at> debbugs.gnu.org
Subject: Re: bug#75364: Manual: Alist example does not work
Date: Sun, 5 Jan 2025 00:34:32 +0100
[Message part 1 (text/plain, inline)]
This is a duplicate of  https://bugs.gnu.org/32841 <https://bugs.gnu.org/32841> which was fixed in 818b879b2e481943340e86dbb5b93f12021206c5.

The online manual should update when 3.0.11 is released. 

Regards
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 02 Feb 2025 12:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 215 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.