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

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

Re: Emacs Lisp Q: Switch Emacs Frame Between Current/Original FVWM Deskt


From: Stefan Monnier
Subject: Re: Emacs Lisp Q: Switch Emacs Frame Between Current/Original FVWM Desktop?
Date: Sat, 21 Jul 2007 23:33:30 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>>> If I eval
>> 
>>> (progn
>>> (setq pop-up-frames t)
>>> (display-buffer "*Group*"))
>> 
>>> The *Group* buffer will be displayed in a new window, but no new frame
>>> will be created.
>> 
>> That's not what I see with the trunk of Emacs-CVS startd with "emacs
>> -Q", so either it's been fixed, or it depends on some config of yours.

> The error is on my side. :-)

> I use my own `display-buffer-function' to have emacs split windows
> horizontally by default. And, of course, I forgot to handle the
> pop-up-frames case. Now I tried adding it, but I don't get it right. How
> do I create a new frame and display a given buffer in it?

You might try:

  (let ((display-buffer-function nil)
        (pop-up-frames t))
    (display-buffer <buffer>))


-- Stefan


reply via email to

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