[Top][All Lists]

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

Re: managing windows in two frames

From: Stephen Leake
Subject: Re: managing windows in two frames
Date: Wed, 04 Sep 2013 13:19:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt)

Stefan Monnier <address@hidden> writes:

>> (defun sal-move-to-other-frame ()
>>   "Move current buffer to a window in another frame."
>>   (interactive)
>>   (let ((buffer (current-buffer)))
>>     (switch-to-prev-buffer nil 'bury)
>>     (let ((display-buffer-overriding-action
>>         '((display-buffer-reuse-frame buffer display-buffer-pop-up-frame)
>>           . '((reusable-frames . visible)))))   ;; reuse a window in other 
>> frame
>>       (display-buffer buffer))))
> Don't let-bind display-buffer-overriding-action here.
> Just pass the relevant args to display-buffer.
> display-buffer-overriding-action is only for use when you don't have
> direct control over the call(s) to display-buffer.

Ah, right; the ACTION arg to display-buffer overrides
display-buffer-base-action, which I have set.

-- Stephe

reply via email to

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