From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1259: quit-window: does it quit the wrong buffer? Date: Sun, 26 Oct 2008 21:19:48 -0400 Message-ID: Reply-To: David Reitter , 1259@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1225072227 29819 80.91.229.12 (27 Oct 2008 01:50:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 01:50:27 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 27 02:51:29 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KuHGR-0002N3-JE for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 02:51:28 +0100 Original-Received: from localhost ([127.0.0.1]:48286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuHFJ-0005i1-F5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Oct 2008 21:50:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuHFG-0005hw-L4 for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2008 21:50:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuHFD-0005hk-4W for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2008 21:50:13 -0400 Original-Received: from [199.232.76.173] (port=55229 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuHFC-0005hh-SS for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2008 21:50:10 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59819) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KuHFB-00060p-Pb for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2008 21:50:10 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9R1o2UN029890; Sun, 26 Oct 2008 18:50:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9R1U3qR025244; Sun, 26 Oct 2008 18:30:03 -0700 X-Loop: don@donarmstrong.com Resent-From: David Reitter Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 27 Oct 2008 01:30:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1259 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122507040623068 (code B ref -1); Mon, 27 Oct 2008 01:30:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 27 Oct 2008 01:20:06 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9R1K2XS022866 for ; Sun, 26 Oct 2008 18:20:03 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:60905 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KuGjK-0002T4-N5 for emacs-pretest-bug@gnu.org; Sun, 26 Oct 2008 21:17:14 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KuGm0-0008OV-6G for emacs-pretest-bug@gnu.org; Sun, 26 Oct 2008 21:20:00 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.171]:20165) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KuGlz-0008ND-NO for emacs-pretest-bug@gnu.org; Sun, 26 Oct 2008 21:20:00 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 36so152286uga.17 for ; Sun, 26 Oct 2008 18:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=NBT7mAW/hcseEVbSIS7QyKkd63E5mcxaYSOcMI/DmYk=; b=Z56IgpXKQY/WYCCeP+BprvkbcsrgyPUw9Ag6AfYFFqy4wTxIwA/JwpzQ7EKYgJHmGp Pau2YgrR+nIi4McYKWjNUsFT9Ph8qEEE+ailGOjPO5zbrkRIBAoqhbRmp0k2klm4AxsU uiWjqYfr7x6Oqbst6JAytksJ23DrOhDjeHO58= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=ez+c6/rJpLsqjrPQ2FEjxu3clLSjzloRuSgmoOzGV+QiH2EzUrZub1W5gpAKCO2SrC dfihoSgNPCW9usJe9vwiqPPbDsJcSOySK3IDBvE0P5FSvbPSX6gnT6zGnUdaNp6NzfHG 7a8bW2efYTf1m+lEXQNcfVv0B1PS1qYJPgxsc= Original-Received: by 10.66.218.15 with SMTP id q15mr1716283ugg.77.1225070392707; Sun, 26 Oct 2008 18:19:52 -0700 (PDT) Original-Received: from ?10.0.1.2? (pool-151-201-18-130.pitt.east.verizon.net [151.201.18.130]) by mx.google.com with ESMTPS id w28sm1358599uge.5.2008.10.26.18.19.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 26 Oct 2008 18:19:51 -0700 (PDT) X-Mailer: Apple Mail (2.929.2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 26 Oct 2008 21:50:13 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21933 gmane.emacs.pretest.bugs:23312 Archived-At: I'm wondering if there is a discrepancy between the doc string of quit- window and its implementation: The function is supposed to quit the current buffer, but what it seems to do is to quit the buffer in the selected window. (defun quit-window (&optional kill window) "Quit the current buffer. Bury it, and maybe delete the selected frame. \(The frame is deleted if it contains a dedicated window for the buffer.) With a prefix argument, kill the buffer instead. Noninteractively, if KILL is non-nil, then kill the current buffer, otherwise bury it. If WINDOW is non-nil, it specifies a window; we delete that window, and the buffer that is killed or buried is the one in that window." (interactive "P") (let ((buffer (window-buffer window)) (frame (window-frame (or window (selected-window))))