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#8911: bs-cycle-next deletes window in some cases. Date: Tue, 21 Jun 2011 16:00:00 +0200 Message-ID: References: <4E009EB0.1050903@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1308666984 7890 80.91.229.12 (21 Jun 2011 14:36:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2011 14:36:24 +0000 (UTC) Cc: 8911@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 21 16:36:20 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ23s-0005zw-Sl for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jun 2011 16:36:17 +0200 Original-Received: from localhost ([::1]:33934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ23r-0007jO-IW for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jun 2011 10:36:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ1Vs-0006hu-Ez for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 10:01:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ1Vm-0007Um-SM for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 10:01:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ1Vm-0007Ue-KX for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 10:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QZ1Vl-0004xJ-U9; Tue, 21 Jun 2011 10:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jun 2011 14:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8911 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8911-submit@debbugs.gnu.org id=B8911.130866484719030 (code B ref 8911); Tue, 21 Jun 2011 14:01:01 +0000 Original-Received: (at 8911) by debbugs.gnu.org; 21 Jun 2011 14:00:47 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ1VX-0004wt-AX for submit@debbugs.gnu.org; Tue, 21 Jun 2011 10:00:47 -0400 Original-Received: from mail-pw0-f44.google.com ([209.85.160.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ1VW-0004wg-4s for 8911@debbugs.gnu.org; Tue, 21 Jun 2011 10:00:47 -0400 Original-Received: by pwj5 with SMTP id 5so381962pwj.3 for <8911@debbugs.gnu.org>; Tue, 21 Jun 2011 07:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=hzi6TfXTihNGb9qzzqROUYkVJyxgeHA/a2o3dVTUs8s=; b=A6JvjHOKwe17JD3Te7H4lXdvvJkl/43Psf6nl7462VpTSyGrmLi3OX5o38i1Ki868D 3eWCIko6hjf8sADHTKlrackjqCSvyd46vaVQgPsUgbwjHfOKe73MzIbTBBASzny/vd22 hSFATncG9MmLV+RuAc88m87m8pY2suDGHUAUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=wd6LexCYiO6bXptg1nrMzlGsX7MdNZJq54w8EpP6PGj2wcDPOH0m9K2uFCwD8qlspA mz2JQN5a+1hSvyzhdxUcuH6QrWENO6yPHx7xdyjXK4EePTK2AgI650CYqnsBC57UDzIr JE9FTP7z5RGRTu9y3o1GRdJezHCTaYnAgT2wg= Original-Received: by 10.142.166.19 with SMTP id o19mr977125wfe.436.1308664840211; Tue, 21 Jun 2011 07:00:40 -0700 (PDT) Original-Received: by 10.142.134.11 with HTTP; Tue, 21 Jun 2011 07:00:00 -0700 (PDT) In-Reply-To: <4E009EB0.1050903@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 21 Jun 2011 10:01:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:47376 Archived-At: On Tue, Jun 21, 2011 at 15:37, martin rudalics wrote: > `bs-cycle-next' is probably not to blame because it just wants to make > sure that the buffer is not chosen again soon for displaying it. =C2=A0So= we > have a number of ways to restore the old behavior, namely > > - have `bs-cycle-next' call `unrecord-buffer' instead of `bury-buffer', That seems to work, yes. > - have `bury-buffer' only delete dedicated windows as before, I don't follow you. Before that change, bury-buffer was not called only on dedicated windows. The trouble was that, when called on a dedicated window, it iconified the frame. > - give `bury-buffer' an extra argument which allows (or forbids) to > =C2=A0delete the selected window (or corresponding frame), Perhaps this is the best long term answer. > - make sure that `bury-buffer' deletes only automatically created > =C2=A0windows (much like the recent option `frame-auto-delete'). What's an "automatically created window"? > Earlier versions of this used > to iconify frames which some people on this list disliked severely so I > removed it. =C2=A0So far no one missed this issue, but maybe I shall rest= ore > it as well? Again, I don't follow you. This: (progn (set-window-dedicated-p (selected-window) t) (bury-buffer)) still iconifies the frame. =C2=A0 =C2=A0 Juanma