[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Correct fallback from display-buffer-function
From: |
martin rudalics |
Subject: |
Re: Correct fallback from display-buffer-function |
Date: |
Mon, 12 Dec 2011 10:23:49 +0100 |
User-agent: |
Thunderbird 2.0.0.21 (Windows/20090302) |
> You may notice that there is no proper way to get `action' and `frame'
> variables for correct fallback.
This is by intention. Applications that used `display-buffer-function'
before Emacs 24 wouldn't know how to handle these arguments.
> So, could you tell me a good solution for this problem?
Add to `display-buffer-alist' a regexp matching the names of the buffer
you want to handle via your `display-buffer-function' plus the function
of your choice. Don't use `display-buffer-function', it's here for
compatibility with earlier Emacs versions only. Check with the code of
`display-buffer' to know what will be passed to your function via the
ALIST argument.
martin