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
> with-help-window has been changed to use with-temp-buffer-window.
> temp-buffer-window-show has special treatment for
> temp-buffer-resize-mode but not temp-buffer-browse-mode (in GNU ELPA).
>
> There seems to be a significant overlap between with-temp-buffer-window
> and with-output-to-temp-buffer. I wonder if there is a better design of
> with-temp-buffer-window that re-use/blend with
> with-output-to-temp-buffer. I also find the similar hooks (setup/show
> hooks) between these macros confusing.
`with-help-window' does some things differently which I could not put
into `with-output-to-temp-buffer' due to compatibility issues. Can't
you put `temp-buffer-browse-mode' on `temp-buffer-window-show-hook'?
> Maybe what need isn't a macro close to with-output-to-temp-buffer but
> one (e.g with-temp-window) close to with-temp-buffer.
The idea of `with-temp-buffer' is to create a temporary buffer where you
evaluate things and _kill_ that buffer immediately afterwards. The idea
of `with-temp-buffer-window' is to show the buffer and keep it around at
least until you quit the window.
martin
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.