From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2LJYHAjFHmD8fQAA0tVLHw (envelope-from ) for ; Sat, 06 Feb 2021 16:34:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6IsAGAjFHmDRcwAA1q6Kng (envelope-from ) for ; Sat, 06 Feb 2021 16:34:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D52B39402B1 for ; Sat, 6 Feb 2021 16:34:15 +0000 (UTC) Received: from localhost ([::1]:38882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8QXF-0000Jp-R1 for larch@yhetil.org; Sat, 06 Feb 2021 11:34:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8QWk-0000JX-8f for emacs-orgmode@gnu.org; Sat, 06 Feb 2021 11:33:43 -0500 Received: from dal3relay4.mxroute.com ([64.40.27.4]:46349) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8QWg-0000qE-Cy for emacs-orgmode@gnu.org; Sat, 06 Feb 2021 11:33:41 -0500 Received: from filter004.mxroute.com ([149.28.56.236] 149.28.56.236.vultr.com) (Authenticated sender: mN4UYu2MZsgR) by dal3relay4.mxroute.com (ZoneMTA) with ESMTPSA id 177783107af00016cf.001 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Sat, 06 Feb 2021 16:33:35 +0000 X-Zone-Loop: 47b620a4945c17fa495cc6867eb19bc951349b24dab7 X-Originating-IP: [149.28.56.236] Received: from friday.mxlogin.com (friday.mxlogin.com [159.69.65.104]) by filter004.mxroute.com (Postfix) with ESMTPS id F3A873E9F2 for ; Sat, 6 Feb 2021 16:33:33 +0000 (UTC) From: "\"Joshua O'Connor\"" To: emacs-orgmode@gnu.org Subject: org-no-popups overriding display-buffer-alist Date: Sat, 06 Feb 2021 16:33:25 +0000 Message-ID: <871rdtupey.fsf@joshuao.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-AuthUser: joshua@joshuao.com Received-SPF: pass client-ip=64.40.27.4; envelope-from=joshua@joshuao.com; helo=dal3relay4.mxroute.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: D52B39402B1 X-Spam-Score: -2.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: wzXELv7Mvvyk Hi, I was wondering what the reason is for Org to employ the tactic of overriding the variable 'display-buffer-alist' in a few places, using the 'org-no-popups' macro? It's my understanding that this variable is to be exclusively set by users, and acts as the "it's my program, I'll put windows where I want them" setting. The manual has this to say "display-buffer-alist and display-buffer-base-action are user options=E2=80= =94Lisp programs must never set or rebind them. display-buffer-overriding-a= ction, on the other hand, is reserved for applications=E2=80=94who seldom u= se that option and if they use it, then with utmost care." I've ended up with this rather inelegant cludge: (defun org-switch-to-buffer-other-window (args) "Switch to buffer in a second window on the current frame. In particular, do not allow pop-up frames. Returns the newly created buffer. Redefined to allow pop-up windows." ;; (org-no-popups ;; (apply 'switch-to-buffer-other-window args))) (switch-to-buffer-other-window args)) Does anyone know of a better way to reassert my window preferences? If concrete context will help: I'm specifically wanting to shift the "*Org Select*" buffers into a side window rather than them do whatever they want. Cheers, Joshua