From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Help with display-buffer-alist Date: Fri, 15 Apr 2022 13:15:31 +0200 Message-ID: <20220415111531.ktoqlbfuusufjjdv@Ergus> References: <20220415111531.ktoqlbfuusufjjdv.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28609"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 15 13:17:00 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfJwh-0007CB-P0 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 13:16:59 +0200 Original-Received: from localhost ([::1]:54742 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nfJwg-0000EX-8T for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 15 Apr 2022 07:16:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfJvW-0000EB-W8 for help-gnu-emacs@gnu.org; Fri, 15 Apr 2022 07:15:47 -0400 Original-Received: from sonic312-20.consmr.mail.bf2.yahoo.com ([74.6.128.82]:38143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nfJvU-0003Nv-Hv for help-gnu-emacs@gnu.org; Fri, 15 Apr 2022 07:15:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1650021340; bh=KgRvCF11t7/1ImRb0vMTUbtseOk9wlNOSUGai78FE3A=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=cyoTtg7pCdAuOLZrLi5IoAr3n3N2Qi94s2Is2LK/SrZdaMsHo2qd/dSNZU7yiZZZnKdoQa5b3SuppiPyHd70CsVMoIkwoOiLarW3mLW6ek3+501Ny2MSZYOKff8dYmPpLUg+Vyow4Pz923g+joaRS64DM8ve0hkgTz/BKp/W5nzkhg2545pXbGLKBgV1w7t3ACx9dDMwDToD6PggT9T8zVolVq5NbYHb55plRSlR4X+ak2Bp8ybnVIQn3tR+zscZXtjDpgnV5R621tqkwnhEzLnLmDbmkpd2bv15+mGZ4jZOXL0QinVsWyEQIFLZ6WmYKIezFpqXldMqrpQmydDZrQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1650021340; bh=klGX6kRg8JmYUaoiqQPKBv1WxpBKgWO8IFyYSF724mn=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=iLzwvBWbj+c0P7ve805V0FaWqs5+P+/fRx5HOQHLhhc4HYvWea5IEqFfpN0aw3Au+SL+OfBFyeddDBTb9gPAfYwpWVqJx5YzIShhiXwV2Miz4PWeRKqGY4w+XKcjtA9Ybwh3T5ip0BQ3FUDlNbWkjyT6C+jwrBdQa+mRIvAqPBb8Mgobu7w6uFBPDIiAyp5mZlzWbKoT8N8IW/ShouqNh74ATdNBhUFwGHOSyixidgQP2cfVbPBIjXJey8kT7djfX7efFpDa5UyI5LjVp1qFC9yItzdL77AWQDqWpSTPhey5Vz3mZn8s4Bxr6fbgs2UWcmA30aEh3JshdGq68PBUiQ== X-YMail-OSG: 77mACe8VM1n.S.ebS.gC0PsWOLMrUH7iwlyvFE6fZ_nNj4eRHU2vCbrdXOrpwxS MWyoDNKGwQo_xLUqA4TZaADwH2QdcbkfRdyEaklY8QFYCGKnH6zNC7d9i0ser0AGf74VynNnm8B1 OAwX86xcMP7q5XoAxEfyCVOsa4eVIW3h6uCjZVTvos5GlbHNzvA4U0YufBp36Ej_bj76fWPJkUb0 Ljd0DjvDTYxJD7jwgt4XCQNHiO1CyQuTu61PnGxvJzYn7husXXxwTAOsMy.phxqa_H3_EaQ2RWpH VUno_4lSA2.tAdP1I2DCqm9OzqloOIwKvLT2Zr8t0t3p2.9fOLc9Cm7CpXsmWvrcc0RUmwExGgwL fLquq4wjlKgE9Pxnvp6CNiInfvfkepsJNhyo9zezLxK2T8PX8dof2DTJq2xoOa00Pz.pKJ1fdVwn tQkwVME7zbOwIN1.mEKX.sx0uUIAfL8dxd4gPaW9ulXISX_SEkf2miaxZXYXCLzvvNyzdoc6tH4K cYrA1BxbPNI9oTtz2uY58GkJTb0EWEqV1yivGorr8ZcyMLEdCI2EDoj1Ec5BJ.l_tk8ujCJJwL_w gTE_Jch8vNkGJyYE1yUDYnfAeNkt0_SjQyOuXlFDcl62PohAvyU8.QBduxpeESG6lamz8r_AleQu CV54jqKRM1nQuBn_J67cx8lvRTWWK1aL2NySB5B3N1s7xXh7nHLGczL2RaC5xHgkMzXIO7EK1dou IYLFLy9A32jMUQ6nylzX4Xb0LTET7UIt4Wx3vxtCx.velr3_2qb8aTlK9GFYpIIw.KodlYAupqlp 6aCcQoy4fZBuQMQv6z7wtB2kcgHOu6WGZAzTPLZkFs X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Fri, 15 Apr 2022 11:15:40 +0000 Original-Received: by hermes--canary-production-ir2-765f846db-mtz9v (VZM Hermes SMTP Server) with ESMTPA ID 7cc8a883545d7a8f121a90f1e280f9eb; Fri, 15 Apr 2022 11:15:35 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.20048 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.128.82; envelope-from=spacibba@aol.com; helo=sonic312-20.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136919 Archived-At: Hi: I am trying to mimic somehow the swiper behavior with occur. The first step for that is to put the occur window always at bottom which was pretty simple with this: (add-to-list 'display-buffer-alist ("*Occur*" display-buffer-at-bottom)) But now I want somehow to limit the window height to 10 lines. With the documentation of display-buffer and display-buffer-alist It says that there should be (CONDITION . ACTION) where: ACTION is a cons cell (FUNCTIONS . ALIST), where FUNCTIONS is an action function or a list of action functions and ALIST is an action alist. Each such action function should accept two arguments: a buffer to display and an alist of the same form as ALIST. See `display-buffer' for details. So I tried substituting display-buffer-at-bottom with: (display-buffer-at-bottom . (window-height . 10)) But I am obviously doing something wrong because this just doesn't work... so the question is: how do I use correctly the (FUNCTIONS . ALIST) in the extended way? Thanks in advance, Ergus... PD: Maybe another example with this answer may be added to the docstring.