GNU bug report logs - #40671
[DOC] modify literal objects

Previous Next

Package: emacs;

Reported by: Kevin Vigouroux <ke.vigouroux <at> laposte.net>

Date: Thu, 16 Apr 2020 20:40:02 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Mattias EngdegÄrd <mattiase <at> acm.org>
To: 40671 <at> debbugs.gnu.org
Cc: Kevin Vigouroux <ke.vigouroux <at> laposte.net>
Subject: Re: bug#40671: [DOC] modify literal objects
Date: Fri, 17 Apr 2020 18:37:23 +0200
[Message part 1 (text/plain, inline)]
tags 40671 patch
stop

[Sorry about the truncated message.]

> Can we modify literal objects? 

No, and the manual should do a much better job at explaining this. At the very least it should not promulgate bad ideas by including mutation of literals in example code. Patch attached, suggested for emacs-27.

We should not even try to show what happens when the user breaks the rule, because it is undefined.


[0001-Don-t-mutate-literals-in-manual-examples-bug-40671.patch (application/octet-stream, attachment)]

This bug report was last modified 5 years and 2 days ago.

Previous Next


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