unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: display-buffer-alist actions
Date: Wed, 24 Feb 2021 21:57:55 +0100	[thread overview]
Message-ID: <874ki1npyk.fsf@web.de> (raw)
In-Reply-To: 87k0qxtekt.fsf@fastmail.fm

Joost Kremers <joostkremers@fastmail.fm> writes:

> IIUC no, the actions (the conses you mention) don't have conditionals.

But they are allowed to fail (i.e., return nil).  AFAIK actions are
tried in order until one succeeds.  So one could use special action
functions (e.g. trivial wrappers around the given actions that just fail
if a condition is not met) to get a conditional behavior inside the
`display-buffer' mechanism.

Michael.




  parent reply	other threads:[~2021-02-24 20:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24 17:44 display-buffer-alist actions Eric S Fraga
2021-02-24 19:52 ` Joost Kremers
2021-02-24 20:08   ` Joost Kremers
2021-02-24 21:08     ` TRS-80
2021-02-24 20:57   ` Michael Heerdegen [this message]
2021-02-25 16:25   ` Eric S Fraga
2021-02-25 20:40     ` Garjola Dindi
2021-02-24 21:15 ` Stefan Monnier
2021-02-25 16:34   ` Eric S Fraga
2021-02-25 16:51     ` Stefan Monnier
2021-02-26  9:43       ` Eric S Fraga
2021-02-25  0:00 ` [External] : " Drew Adams
2021-02-25  4:28   ` Michael Heerdegen
2021-02-25  7:00     ` Drew Adams
2021-02-25 14:26       ` Stefan Monnier
2021-02-25 16:22         ` Drew Adams
2021-02-25 16:36     ` Eric S Fraga
2021-02-25 16:27   ` Eric S Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874ki1npyk.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).