GNU bug report logs -
#16038
24.3; latest change to with-help-window makes temp-buffer-browse useless
Previous Next
Reported by: Leo Liu <sdl.web <at> gmail.com>
Date: Tue, 3 Dec 2013 14:36:02 UTC
Severity: normal
Tags: confirmed
Merged with 17109,
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
View this message in rfc822 format
On 2014-01-11 23:41 +0800, martin rudalics wrote:
> I'd rather get rid of `with-output-to-temp-buffer' ;-)
Yes, please make one of them obsolete.
> If you look into our mail archives, you should find a couple of
> complaints about `with-output-to-temp-buffer' putting the buffer in
> `help-mode' (via `temp-buffer-setup-hook') and the like. I tried to
> avoid these when I wrote `with-temp-buffer-window'.
>
> Assume two applications A and B: A expects `with-output-to-temp-buffer'
> to put the buffer in `help-mode'. B wants to avoid that the buffer is
> put in `help-mode'. I can offer B to use `with-temp-buffer-window'
> instead while A can continue to work as usual. Eventually I'd like A to
> use `with-temp-buffer-window' too and put the buffer in `help-mode'
> itself. But there were too many `with-output-to-temp-buffer' calls in
> the code base and I was not able to look into them.
Indeed it seems with-temp-buffer-window is more powerful. Please take
steps to deprecate the other macro. It is this that looks rather ugly:
1) temp-buffer-setup-hook, temp-buffer-show-hook,
2) temp-buffer-window-setup-hook, temp-buffer-window-show-hook
Leo
This bug report was last modified 10 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.