GNU bug report logs -
#17109
24.4.50; REGRESSION: `with-output-to-temp-buffer' is broken
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Wed, 26 Mar 2014 20:09:01 UTC
Severity: normal
Tags: confirmed
Merged with 16038,
17966
Found in versions 24.3, 24.4.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 17109 <at> debbugs.gnu.org (full text, mbox):
> 5. What you must NOT do is change the behavior of the existing macro,
> so that any code that uses it breaks.
I *really* hope that someone please takes this regression seriously.
I have lots of code that defines help functions of different kinds,
and it all uses `with-output-to-temp-buffer'. And it all needs to
work across multiple Emacs versions.
For example, Bookmark+ has a command `bmkp-describe-bookmark'.
It does various things, but the first thing it does is this:
(with-output-to-temp-buffer "*Help*" (princ help-text))
That's a standard Emacs idiom, and has been so for decades.
Now it is broken. Buffer *Help* ends up in Fundamental mode.
This should not be so.
I do not understand why anyone would change the behavior of
a macro such as `with-output-to-temp-buffer'. There are plenty
of other ways to get whatever new behavior you want, without
doing that.
This bug report was last modified 10 years and 283 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.