[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make-frame-command with multiple munitors
From: |
wilnerthomas |
Subject: |
Re: make-frame-command with multiple munitors |
Date: |
Sat, 17 Sep 2022 20:37:30 +0200 (CEST) |
Sep 17, 2022, 17:55 by juri@linkov.net:
>> When I work with several monitors I would like that when, in a frame,
>> I run a command which opens a new frame, this frame is created on the
>> same monitor as that of the current frame, which is not always the
>> case.
>>
>> Function make-frame-on-current-monitor exists to meet this use case
>> but it is not really easy to use interactively. Variable
>> pop-up-frame-function can be set to use a function different from
>> make-frame for creating a new frame in display-buffer-pop-up-frame.
>>
>> I have used pop-up-frame-function to use make-frame-on-current-monitor
>> instead of make-frame. That works fine but there is no easy way to do
>> the same with special-display-popup-frame or make-frame-command.
>>
>> IMHO it would be worth to use such a variable in those functions too.
>>
>
> Sorry, the last line is unclear, please explain
> what variable and in what functions?
>
I wonder how can one pass a frame to a function that needs it as argument.
My frame reports as
#<frame *scratch* - GNU Emacs at zeus 0x2c88d40>
And I want to call
(set-frame-position frame nlft ntop)