From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#16816: 24.3.50; erroneous docstring in with-temp-buffer-window Date: Wed, 19 Feb 2014 22:29:27 +0100 Message-ID: <87sire4wqw.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392845481 8920 80.91.229.3 (19 Feb 2014 21:31:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Feb 2014 21:31:21 +0000 (UTC) To: 16816@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 19 22:31:28 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WGEjl-0001Ha-N3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 22:31:25 +0100 Original-Received: from localhost ([::1]:34066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEjl-00047S-5Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Feb 2014 16:31:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEjZ-00046w-3U for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:31:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGEjP-0004GN-Hi for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:31:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59541) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEjP-0004GI-Du for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:31:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WGEjO-0001Jw-PT for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:31:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Feb 2014 21:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16816 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13928454044932 (code B ref -1); Wed, 19 Feb 2014 21:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2014 21:30:04 +0000 Original-Received: from localhost ([127.0.0.1]:60723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGEiP-0001HE-UI for submit@debbugs.gnu.org; Wed, 19 Feb 2014 16:30:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37338) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGEiN-0001Gm-Je for submit@debbugs.gnu.org; Wed, 19 Feb 2014 16:30:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGEi8-0003n5-OA for submit@debbugs.gnu.org; Wed, 19 Feb 2014 16:29:54 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:60741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEi8-0003n1-LI for submit@debbugs.gnu.org; Wed, 19 Feb 2014 16:29:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEi1-0003mv-B8 for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:29:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGEht-0003jC-QG for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:29:37 -0500 Original-Received: from mailrelay011.isp.belgacom.be ([195.238.6.178]:1296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGEht-0003ff-Ki for bug-gnu-emacs@gnu.org; Wed, 19 Feb 2014 16:29:29 -0500 X-Belgacom-Dynamic: yes Original-Received: from 199.199-178-91.adsl-dyn.isp.belgacom.be (HELO LDLC-portable) ([91.178.199.199]) by relay.skynet.be with ESMTP; 19 Feb 2014 22:29:27 +0100 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85913 Archived-At: 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.