help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display-buffer-alist actions


From: Michael Heerdegen
Subject: Re: display-buffer-alist actions
Date: Wed, 24 Feb 2021 21:57:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]