From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Use of dedicated windows in gdb-mi.el Date: Mon, 09 Feb 2015 09:29:34 -0500 Message-ID: References: <87h9uynckc.fsf@gmail.com> <83iofedfkz.fsf@gnu.org> <877fvun97j.fsf@gmail.com> <83fvaid8sa.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423492203 31386 80.91.229.3 (9 Feb 2015 14:30:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 14:30:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thibaut Verron Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 09 15:29:47 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YKpLO-0000IU-0P for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2015 15:29:46 +0100 Original-Received: from localhost ([::1]:33123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKpLN-0005oj-Gz for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2015 09:29:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKpLJ-0005kE-FT for emacs-devel@gnu.org; Mon, 09 Feb 2015 09:29:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKpLF-0005EQ-Lc for emacs-devel@gnu.org; Mon, 09 Feb 2015 09:29:41 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:46833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKpLF-0005EA-Gj for emacs-devel@gnu.org; Mon, 09 Feb 2015 09:29:37 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t19ETYmr024905; Mon, 9 Feb 2015 09:29:34 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 1A0631240; Mon, 9 Feb 2015 09:29:34 -0500 (EST) In-Reply-To: (Thibaut Verron's message of "Mon, 9 Feb 2015 09:19:48 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5212=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5212> : inlines <2053> : streams <1387390> : uri <1850517> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182691 Archived-At: > From what I understand, this work-around is an illustration of the > point, rather than a solution: when someone presses C-x b, they want > to change the buffer displayed in the current window. They do not > want to have to switch to another window/frame before that, and they > do not want to see the desired buffer appear in a random window. I introduced "softly dedicated" windows for that kind of situation: a "softly dedicated" window would not be chosen normally when Elisp code wants to display some buffer somewhere, but if the user does `C-x b' then the "soft dedication" gets overruled. I know Martin doesn't like this concept, but in any case, if we could try and arrange for gdb-mi to mark its windows as softly dedicated, I think it would solve your use case. Stefan