[Top][All Lists]

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

Correct fallback from display-buffer-function

From: Tomohiro Matsuyama
Subject: Correct fallback from display-buffer-function
Date: Mon, 12 Dec 2011 14:04:16 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0

Hi all,

I have some problem about display-buffer-function. My poor extension,
popwin.el, uses display-buffer-function for handling all operations to
windows in order to pop up particular windows in popwin's way.

If one of pop up rules matches against the buffer being to be displayed,
popwin will be responsible about the window of the buffer, and there is
no problem in this case. However, if no rules match, popwin can't
fallback the operations to windows correctly.

Currently, popwin has the following ugly code for fallback in the entity
of display-buffer-function.

;; Assume display-buffer-function to be nil here
(if (and (>= emacs-major-version 24)
(boundp 'action)
(boundp 'frame))
;; Use variables ACTION and FRAME which are formal parameters
(display-buffer buffer action frame)
;; handle it

You may notice that there is no proper way to get `action' and `frame'
variables for correct fallback.
So, could you tell me a good solution for this problem?


reply via email to

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