From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.bugs Subject: bug#1259: quit-window does not kill the window Date: Thu, 13 Nov 2008 17:40:55 +0100 Message-ID: Reply-To: Juanma Barranquero , 1259@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226596189 12799 80.91.229.12 (13 Nov 2008 17:09:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Nov 2008 17:09:49 +0000 (UTC) Cc: 1259@emacsbugs.donarmstrong.com To: "martin rudalics" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 13 18:10:38 2008 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 1L0fi8-0001EC-3A for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 18:10:28 +0100 Original-Received: from localhost ([127.0.0.1]:44150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0fgz-0000nP-P6 for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Nov 2008 12:09:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L0fOV-0005up-Lu for bug-gnu-emacs@gnu.org; Thu, 13 Nov 2008 11:50:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L0fOU-0005uB-W1 for bug-gnu-emacs@gnu.org; Thu, 13 Nov 2008 11:50:11 -0500 Original-Received: from [199.232.76.173] (port=36110 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L0fOU-0005u3-Nn for bug-gnu-emacs@gnu.org; Thu, 13 Nov 2008 11:50:10 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51237) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L0fOU-0000Ri-Mp for bug-gnu-emacs@gnu.org; Thu, 13 Nov 2008 11:50:11 -0500 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 mADGo7a6015596; Thu, 13 Nov 2008 08:50:07 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mADGo3h7015201; Thu, 13 Nov 2008 08:50:03 -0800 X-Loop: don@donarmstrong.com Resent-From: "Juanma Barranquero" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 13 Nov 2008 16:50:03 +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 1259-submit@emacsbugs.donarmstrong.com id=B1259.122659445813942 (code B ref 1259); Thu, 13 Nov 2008 16:50:03 +0000 Original-Received: (at 1259) by emacsbugs.donarmstrong.com; 13 Nov 2008 16:40:58 +0000 Original-Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mADGetqR013936 for <1259@emacsbugs.donarmstrong.com>; Thu, 13 Nov 2008 08:40:56 -0800 Original-Received: by yx-out-2324.google.com with SMTP id 8so443893yxg.31 for <1259@emacsbugs.donarmstrong.com>; Thu, 13 Nov 2008 08:40:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition; bh=jt+dIW3wf2k+xH75Y+NA3M96JCi7bvbSDuG6VH4c0HI=; b=DNliJ6RJbHqvkaCWhs6ZciLgWihhN+5yfPdQKrZ+80rE6TD8DhfNclPWsZpK1pt2tk NoglDZipqwqG71tU9+y33OhqaRjU19a3K72l5E7C97c/xA5INnGLPE2EmgAvNFRQzQqH FogbW6P40KSWGaBqcjuKaoDf1zJWUGWcmLTMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=oIBq47LSqk7NXM3Rmv0xmvq+tzMzIyxpP4LVXIk1u3vfQkrKSdgPSaYco7a8JrbC6R PxJpzfo0XO1KRvau2FFaq/IUFX+rFyIk6IHFpqh7noMDCNlTvkDn3MO3Izj2/OldN1rN +7SFnmJMICNocgP9pI/Nrwfdy+qC6NDv9egHs= Original-Received: by 10.100.140.15 with SMTP id n15mr4792758and.111.1226594455072; Thu, 13 Nov 2008 08:40:55 -0800 (PST) Original-Received: by 10.100.13.13 with HTTP; Thu, 13 Nov 2008 08:40:55 -0800 (PST) Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 13 Nov 2008 11:50:11 -0500 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:22319 Archived-At: Martin, I'm afraid I missed this comment by you: "`quit-window' looks fishy in a number of regards: The `delete-frame' stuff needs other_visible_frames to work correctly but this is not available in Elisp. I plan to commit somthing like the version below. Could people please test whether it breaks their favorite use of this?" But yes, it breaks one of my favorite uses. The docstring previously said: "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." Now, it says: "If WINDOW is dedicated or a minibuffer window, delete it and, if it's the only window on its frame, delete its frame as well provided there are other frames left. Otherwise, display some other buffer in the window." I was using the previously documented behavior. I have a function (defun quit-buffer-and-window () (interactive) (quit-window nil (selected-window))) (I assign it to "q" in many modes). Now, C-x 2 C-x o M-x quit-buffer-and-window leaves me with two windows. Juanma