GNU bug report logs - #28625
[PROPOSED] Speed up (format "%s" STRING) and the like

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Wed, 27 Sep 2017 18:53:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 28625 <at> debbugs.gnu.org, jwiegley <at> gmail.com, eggert <at> cs.ucla.edu
Subject: bug#28625: [PROPOSED] Speed up (format "%s" STRING) and the like
Date: Sat, 07 Oct 2017 14:34:27 +0300
> From: Philipp Stephani <p.stephani2 <at> gmail.com>
> Date: Sat, 07 Oct 2017 10:56:52 +0000
> Cc: jwiegley <at> gmail.com, eggert <at> cs.ucla.edu, 28625 <at> debbugs.gnu.org
> 
>  > Shouldn't this at least be documented in the "Incompatible Lisp changes" section of NEWS?
> 
>  If it's incompatible, sure. Is it? Can you show the effect of the
>  incompatibility?
> 
> $ emacs -Q -batch -eval '(let* ((a "a") (b (format "%s" a))) (aset a 0 ?b) (print b))'
> 
> With Emacs 25.3 this prints "a", with current master it prints "b". 

You could see the same behavior with earlier versions when the string
was empty, so we just expanded this behavior, not really changed it.

However, I see your point, so I moved the entry into the Incompatible
Lisp Changes section.




This bug report was last modified 7 years and 284 days ago.

Previous Next


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