Subject: bug#7145: elisp-code behaves differently after byte-compilation

From: Chong Yidong <[email-masked]>
Date: Sun, 03 Oct 2010 01:12:53 -0400

Johan Bockgård <[email-masked]> writes:

> But this is, IMO:
>
> (progn
>   (defsubst spooky-action-at-a-distance ()
>     (let ((a (concat "a" "bc")))
>       (store-substring a 0 "123")))
>
>   (defun foo ()
>     (spooky-action-at-a-distance)
>     (concat "ab" "c"))
>
>   (byte-compile 'foo)
>   (foo))
>
> =>  "123"

I think we're just going to have to ask people not to do that...