From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#8911: bs-cycle-next deletes window in some cases. Date: Tue, 21 Jun 2011 12:28:06 -0400 Message-ID: References: <4E009EB0.1050903@gmx.at> <4E00ADC0.80006@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1308675594 682 80.91.229.12 (21 Jun 2011 16:59:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2011 16:59:54 +0000 (UTC) Cc: 8911@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 21 18:59:50 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 1QZ4Io-0006ku-DR for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jun 2011 18:59:50 +0200 Original-Received: from localhost ([::1]:39681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ4Im-0004Pq-IH for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jun 2011 12:59:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ3p3-0004az-7d for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 12:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ3p1-0001TH-9M for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 12:29:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ3p0-0001TB-Ra for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2011 12:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QZ3p0-0006st-3N; Tue, 21 Jun 2011 12:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier 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 16:29:02 +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.130867370326412 (code B ref 8911); Tue, 21 Jun 2011 16:29:02 +0000 Original-Received: (at 8911) by debbugs.gnu.org; 21 Jun 2011 16:28:23 +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 1QZ3oM-0006rw-Qu for submit@debbugs.gnu.org; Tue, 21 Jun 2011 12:28:23 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ3oK-0006rg-Ks for 8911@debbugs.gnu.org; Tue, 21 Jun 2011 12:28:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAPLFAE5FxL0s/2dsb2JhbABUpnB4iHPADoYqBJ1khCQ X-IronPort-AV: E=Sophos;i="4.65,402,1304308800"; d="scan'208";a="116786203" Original-Received: from 69-196-189-44.dsl.teksavvy.com (HELO ceviche.home) ([69.196.189.44]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 21 Jun 2011 12:28:11 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 3FFB6660F1; Tue, 21 Jun 2011 13:28:06 -0300 (ART) In-Reply-To: (Juanma Barranquero's message of "Tue, 21 Jun 2011 17:02:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 21 Jun 2011 12:29:02 -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:47384 Archived-At: >> I stand corrected. =A0But then the buffer shown in the dedicated window >> kept its position in the buffer list. =A0Isn't that a bug? Yes, tho it's probably minor. > If the window is dedicated, and the user invokes bs-cycle-next > (usually, by having it bound to a key, and not realizing that the > window is dedicated), that's user error, but the user should not be Not if the window is softly-dedicated (in which case the window should be un-dedicated). > no new window should be created. For example, I find the current > behavior > emacs -Q -l bs > C-h N > C-h C-c > M-: (set-window-dedicated-p (selected-window) t) > M-x bs-cycle-next > of splitting the window extremely unuseful and unhelpful. But that's the semantics of (set-window-dedicated-p (selected-window) t). If you don't like it, then you should use (set-window-dedicated-p (selected-window) 'soft) instead. >> Those infamous windows popped up by `display-buffer'. =A0I'm afraid that= a >> user of `bs-cycle-next' will hardly remember why the window was created >> in the first place. > Definitely. That's the whole idea behind soft-dedication. Stefan