From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Troels Nielsen Newsgroups: gmane.emacs.bugs Subject: bug#11567: 24.0.97; WTF? ROFL! (hilarious bug) Date: Tue, 29 May 2012 00:49:20 +0200 Message-ID: References: <8CBD82E7-3C0F-4E08-9127-9DAE6A1AFC9D@web.de> <4FC352DC.5040507@gmx.at> <4FC3C1A2.7050800@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338245391 21905 80.91.229.3 (28 May 2012 22:49:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 May 2012 22:49:51 +0000 (UTC) Cc: Tobias Bading , 11567@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 29 00:49:49 2012 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 1SZ8l3-0000UR-4a for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 May 2012 00:49:49 +0200 Original-Received: from localhost ([::1]:39174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ8l2-0007wX-SB for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 May 2012 18:49:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ8kz-0007w5-T8 for bug-gnu-emacs@gnu.org; Mon, 28 May 2012 18:49:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZ8ky-0002uR-3E for bug-gnu-emacs@gnu.org; Mon, 28 May 2012 18:49:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZ8kx-0002uN-S7 for bug-gnu-emacs@gnu.org; Mon, 28 May 2012 18:49:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SZ8mE-0003vU-Gp for bug-gnu-emacs@gnu.org; Mon, 28 May 2012 18:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Troels Nielsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 May 2012 22:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11567 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11567-submit@debbugs.gnu.org id=B11567.133824544815072 (code B ref 11567); Mon, 28 May 2012 22:51:02 +0000 Original-Received: (at 11567) by debbugs.gnu.org; 28 May 2012 22:50:48 +0000 Original-Received: from localhost ([127.0.0.1]:47297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZ8lz-0003v3-RY for submit@debbugs.gnu.org; Mon, 28 May 2012 18:50:48 -0400 Original-Received: from mail-qa0-f51.google.com ([209.85.216.51]:33701) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZ8lx-0003uq-U8 for 11567@debbugs.gnu.org; Mon, 28 May 2012 18:50:46 -0400 Original-Received: by qaea16 with SMTP id a16so1263036qae.17 for <11567@debbugs.gnu.org>; Mon, 28 May 2012 15:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=Ov+6MKRLdGKu6yTdGWVPv1FTcV/kUjMRs8oSu72q86Q=; b=YHlegfDKj+SDFcU8t5mG56/14xkOD7mrnA2T2EW2EhvnWsMNRLSaH5gJRpdIG8FOhS 0zP+NZjNC5sLTUJlJvKlKuqRfL37vP4tZuAdKlEbdkWjkS8v/BfZAz1+Oq8/4cdKAGum zC285SKjhw0h5zzebaafmQHaKa9ixU+hEB6Yb78eLVw8wRCwASxwYGaNOcsM/J/Y5TuY 2Nlw7v4gTkQoJKVdGhAGcq/M0wcphQeAhOJONVq3z8JwlY4x3QoHRx+QumISeQqtFsMJ L2z36f5HKzkiT7EPLpeNPe+5QZ7f09gLjlDNE7bsv9VXMdosKhsaB4FuM8tgKFM2Jhol 5E+g== Original-Received: by 10.224.210.7 with SMTP id gi7mr9696476qab.35.1338245360571; Mon, 28 May 2012 15:49:20 -0700 (PDT) Original-Received: by 10.229.51.4 with HTTP; Mon, 28 May 2012 15:49:20 -0700 (PDT) In-Reply-To: <4FC3C1A2.7050800@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:60438 Archived-At: > Then maybe we should use `quit-window' in the first place. =A0Attached > find a patch for those who would give it a try (I hardly ever see the > completions buffer). Yes, it works nicely, as far as I can see when there is only one frame. When anymore, the problem occurs just as before. I suppose Stefan earlier hinted at something like this patch, which together with your earlier simplification sort of fixes the problem. Regards Troels =3D=3D=3D modified file 'lisp/window.el' --- lisp/window.el 2012-05-04 23:16:47 +0000 +++ lisp/window.el 2012-05-28 22:35:25 +0000 @@ -2371,7 +2371,10 @@ (defun window-deletable-p (&optional win ((frame-root-window-p window) ;; WINDOW's frame can be deleted only if there are other frames ;; on the same terminal. - (unless (eq frame (next-frame frame 0)) + (unless (or (eq frame (next-frame frame 0)) + ;; Don't delete frame if its minibuffer is active. + (let ((minibuf (active-minibuffer-window))) + (and minibuf (eq frame (window-frame minibuf))))) 'frame)) ((or ignore-window-parameters (not (eq (window-parameter window 'window-side) 'none))