all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#16816: 24.3.50; erroneous docstring in with-temp-buffer-window
@ 2014-02-19 21:29 Nicolas Richard
  2014-02-21 13:08 ` martin rudalics
  2014-02-28 10:59 ` martin rudalics
  0 siblings, 2 replies; 11+ messages in thread
From: Nicolas Richard @ 2014-02-19 21:29 UTC (permalink / raw)
  To: 16816

The docstring of `with-temp-buffer-window' contains :

   It does not make the buffer current for BODY.

(2nd sentence of 2nd paragraph).

But I think that is wrong, because :
(with-temp-buffer-window
        (get-buffer-create "foo")
        nil
        nil
        (message "curbuf: %s"
                 (current-buffer)))

outputs "curbuf: foo"

If this is a docbug, here's a suggestion :

--- a/lisp/window.el
+++ b/lisp/window.el
@@ -149,10 +149,9 @@ BUFFER-OR-NAME must specify either a live buffer, or the name of a
 buffer (if it does not exist, this macro creates it).
 
 This construct makes buffer BUFFER-OR-NAME empty before running BODY.
-It does not make the buffer current for BODY.
-Instead it binds `standard-output' to that buffer, so that output
-generated with `prin1' and similar functions in BODY goes into
-the buffer.
+It makes the buffer current for BODY and binds `standard-output' to that
+buffer, so that output generated with `prin1' and similar functions in
+BODY goes into the buffer.
 
 At the end of BODY, this marks the specified buffer unmodified and
 read-only, and displays it in a window (but does not select it, or make



-- 
Nico.





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-03-22  5:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 21:29 bug#16816: 24.3.50; erroneous docstring in with-temp-buffer-window Nicolas Richard
2014-02-21 13:08 ` martin rudalics
2014-02-27 15:32   ` Juanma Barranquero
2014-02-27 18:44     ` martin rudalics
2014-02-27 18:55       ` Juanma Barranquero
2014-02-27 20:00         ` martin rudalics
2014-02-27 21:04           ` Drew Adams
2014-02-28 10:58         ` martin rudalics
2014-03-16 10:00     ` martin rudalics
2014-03-22  5:19       ` Juanma Barranquero
2014-02-28 10:59 ` martin rudalics

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.