From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: patch gud-gdb to respect other-frame-window? Date: Mon, 30 Jul 2018 16:22:20 -0500 Message-ID: <86r2jkpgfn.fsf@stephe-leake.org> References: <86muuaq7m8.fsf@stephe-leake.org> <864lggqxpl.fsf@stephe-leake.org> <86zhy8piu9.fsf@stephe-leake.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1532985665 21203 195.159.176.226 (30 Jul 2018 21:21:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2018 21:21:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (windows-nt) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 30 23:21:01 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fkFbB-0005MC-2z for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2018 23:21:01 +0200 Original-Received: from localhost ([::1]:55956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkFdG-000462-7h for ged-emacs-devel@m.gmane.org; Mon, 30 Jul 2018 17:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkFcc-00045i-5M for emacs-devel@gnu.org; Mon, 30 Jul 2018 17:22:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkFcX-000763-6Y for emacs-devel@gnu.org; Mon, 30 Jul 2018 17:22:30 -0400 Original-Received: from smtp113.ord1d.emailsrvr.com ([184.106.54.113]:34721) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fkFcX-00075u-1E for emacs-devel@gnu.org; Mon, 30 Jul 2018 17:22:25 -0400 Original-Received: from smtp23.relay.ord1d.emailsrvr.com (localhost [127.0.0.1]) by smtp23.relay.ord1d.emailsrvr.com (SMTP Server) with ESMTP id 812CD203FB for ; Mon, 30 Jul 2018 17:22:23 -0400 (EDT) X-Auth-ID: board-president@tomahawk-creek-hoa.com Original-Received: by smtp23.relay.ord1d.emailsrvr.com (Authenticated sender: board-president-AT-tomahawk-creek-hoa.com) with ESMTPSA id 4C38D201DE for ; Mon, 30 Jul 2018 17:22:23 -0400 (EDT) X-Sender-Id: board-president@tomahawk-creek-hoa.com Original-Received: from Takver4 (76-218-37-33.lightspeed.kscymo.sbcglobal.net [76.218.37.33]) (using TLSv1.2 with cipher AES256-GCM-SHA384) by 0.0.0.0:25 (trex/5.7.12); Mon, 30 Jul 2018 17:22:23 -0400 In-Reply-To: <86zhy8piu9.fsf@stephe-leake.org> (Stephen Leake's message of "Mon, 30 Jul 2018 15:30:22 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 184.106.54.113 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:228020 Archived-At: Another data point. In a package I'm working on, 'wisi-show-parse-errors' shows errors found by the indent parser in a small window at the bottom of the screen, using a display action of: (cons #'display-buffer-at-bottom (list (cons 'window-height #'shrink-window-if-larger-than-buffer))). But the default setting of 'display-buffer-overriding-action' overrides that, and now the window takes half the screen. So sometimes I want the default value that Emacs provides (for wisi-show-parse-errors etc), and sometimes I don't (for gud-gdb etc). So I need an exception mechanism; apply my default value for display-buffer-overriding-action, except in the following buffers/modes. Or invert that, only apply a default value for the following buffers/modes/commands. Ah; that's what 'display-buffer-alist is for. I'll try that. Stephen Leake writes: > Stephen Leake writes: > >> Stefan Monnier writes: >> >>>> Currently, 'gud-gdb' has its own notion of where to put the *gud-* >>>> buffer. Since I use other-frame-window (a GNU ELPA package), I'd like to >>>> override that. >>> >>> Could you explain in more detail what's the problem you're seeing? >> >> Sorry, I was not very clear. >> >> If I type "M-x gud-gdb ...", the window in which the *gdb-* buffer >> is shown is usually not the currently selected window, but sometimes it >> is, depending on what buffer/window is currently selected. There is a >> logic to it, but it's not what I want. >> >> Since I'm used to other-frame-window, I expect newly created buffers to >> appear in the currently selected window; that's what happens for >> find-file and most other commands. > > > I just typed "C-h k ...", and the *Help* window appeared in a window > that is not the selected window. So there's more work to do ... -- -- Stephe