From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "N. Jackson" Newsgroups: gmane.emacs.devel Subject: Re: Suggesting `frame-split-biggest-window' Re: customize location and shape of a new window in a frame Date: Sat, 15 Sep 2018 08:24:24 -0400 Message-ID: <87va773q4n.fsf@moondust.localdomain> References: <9755.9843.306611.23448@gargle.gargle.HOWL> <87y3c7pw4w.fsf@ericabrahamsen.net> <87h8iuik3g.fsf@moondust.localdomain> <87o9d2eaql.fsf@ericabrahamsen.net> <875zzawbd6.fsf_-_@moondust.localdomain> <5B9A1599.2060800@gmx.at> <17488.90794.824863.23451@gargle.gargle.HOWL> <5B9B725F.504@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537014190 16940 195.159.176.226 (15 Sep 2018 12:23:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2018 12:23:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Eric Abrahamsen , martin rudalics , Roland Winkler , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 15 14:23:06 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 1g19bK-0004D3-Cs for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2018 14:23:02 +0200 Original-Received: from localhost ([::1]:55410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g19dQ-0006wH-TL for ged-emacs-devel@m.gmane.org; Sat, 15 Sep 2018 08:25:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g19cm-0006wC-G3 for emacs-devel@gnu.org; Sat, 15 Sep 2018 08:24:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g19ch-0008PV-DX for emacs-devel@gnu.org; Sat, 15 Sep 2018 08:24:32 -0400 Original-Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:37619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g19ch-0008PE-8x; Sat, 15 Sep 2018 08:24:27 -0400 Original-Received: by mail-io1-xd29.google.com with SMTP id v14-v6so8094633iob.4; Sat, 15 Sep 2018 05:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=whDhb57YLE272hDtY5M8HNhsy0vKKE9sOX5xUbA5htc=; b=e/WWkFxQCVMUi9uUzkD/Pwlis1mC9O3olXAj+dd61RR5SrYXymlW/XGJgqAi5LDl/D /wVM9DZNSpYcFCcAJWLjB0Ja+zfH9U0w/ppo3wfBBZJOx0Ood4ZU/dJkRTU+H9aqSgtc F/ZHGrrimtb0IhY0hJotM0bPpDVsYz8YoP/57QNXPGqv8jeqMR8A5F5Sr/zGS7B8qbbb Vta7kXRnljEZKSRXvxQABY0/M9RWuIg1w4cIkQVdRfv8kB7F4751+v1u4ROqPFjKRcSb jJ/7JZFvbY0pwzmBxiFuHpleeQmwa3pIKOlI5XuspGA5NZXEEMGAliXF0E5u1G/+h4EF OuWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=whDhb57YLE272hDtY5M8HNhsy0vKKE9sOX5xUbA5htc=; b=IGk0kjV/JzQmnbObO0yfLh8CqVJH6mKhfyA7FsSUeJmq0sSwVM3a4yXATcoJ3CkC4u yipZ05flwsyZkl1TTa/m46YMH7z3jOWKAMYkYAATq5ZDCoQuUR15mA4oYbBbn1ljVrUf ODZnM6SZyhJmjuHI2xh9qr25rJHRHGz/YkW8He+E0YUzjSh9G9prAIPpiZV8+9Z5SZi8 f6SpYpmYzIIhVMex8TiOePmQx/JIt/s9j6s+ugd7Z7CmY5H5KolxunK/0dpCQ2mLgjXD q7HCKfksfOojU4QnfbM+fkc1EzCPCipGEfXsahuYV7BXQhqcQy4Ia24WL3szWVEGiPU2 q/0g== X-Gm-Message-State: APzg51DbW7gl+sjMuXKOOwvH92Q6wQBJ0EoHBlfmuzUkMD1HAFLRMuiX iJpOqRlLkVjuo0xJ68Zt0L9jt6C7 X-Google-Smtp-Source: ANB0Vdb8tDTth9Wa1C6OnDTjo9bccHyVao2gao4h8YKHJv7HNcWIFQ6q+kRmDeZlkHPN2LZ10br3Lg== X-Received: by 2002:a6b:4a17:: with SMTP id w23-v6mr13974676iob.125.1537014266245; Sat, 15 Sep 2018 05:24:26 -0700 (PDT) Original-Received: from moondust.localdomain.nodomain.none (gftnon6802w-lp130-01-67-71-10-78.dsl.bell.ca. [67.71.10.78]) by smtp.gmail.com with ESMTPSA id x198-v6sm864707ite.19.2018.09.15.05.24.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 15 Sep 2018 05:24:25 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 14 Sep 2018 08:01:07 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d29 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:229811 Archived-At: At 08:01 -0400 on Friday 2018-09-14, Stefan Monnier wrote: > >> The purpose of 'display-buffer-alist' is to set up a window for >> one single buffer. It already fails miserably to make sure that >> two buffers get displayed simultaneously as the thread of >> Bug#32607 shows. > > Exactly. So for the purpose of "orderly setting up and saving > compositions of windows", it's of no use, but in the specific case > of BBDB (which just needs to (temporarily) pop up a single > buffer), it should be sufficient. The BBDB window isn't as ephemeral as a completions window is (for example) which just needs to pop up temporarily. Here I have the BBDB window displayed at all times when I'm reading mail and news -- it displays the records for the sender and/or recipients of the message. Perhaps `display-buffer-alist' is sufficient for the BBDB case. As its documentation is a little unclear (while recursive code is okay, recursive documentation is a little bit trying), it would be nice to see an example of how this might be done. It seems to me that it requires the developer or the user to write code (to iterate through all the windows in the frame) that will be almost identical to the code that the OP of this thread suggested should not need to be reinvented by every developer/user wanting to do essentially the same thing; rather the functionality should be provided by the Emacs infrastructure.