From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wilnerthomas--- via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: make-frame-command with multiple munitors Date: Sat, 17 Sep 2022 20:37:30 +0200 (CEST) Message-ID: References: <82mtb0acta.fsf@gmail.com> <86o7vdc1f6.fsf@mail.linkov.net> Reply-To: wilnerthomas@tutanota.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9980"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pascal Quesseveur , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 17 20:38:08 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZchb-0002Oq-U2 for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Sep 2022 20:38:08 +0200 Original-Received: from localhost ([::1]:40480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZchb-0000OO-1V for ged-emacs-devel@m.gmane-mx.org; Sat, 17 Sep 2022 14:38:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35864) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZch3-00089U-8B for emacs-devel@gnu.org; Sat, 17 Sep 2022 14:37:33 -0400 Original-Received: from w1.tutanota.de ([81.3.6.162]:53030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZch1-00046V-Ke for emacs-devel@gnu.org; Sat, 17 Sep 2022 14:37:32 -0400 Original-Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 24FE9FBF986; Sat, 17 Sep 2022 18:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1663439850; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=p7X407r3RQ7AL+O6EWohRcVCBXoFG6ynEg2M9P5WlWA=; b=YH8iU9TwgwOZMTBMzm7d0bgoqvgvzMVzPhhjisU9T6eGIKh4e1bAbpoteHHxxmwV Lzeebf3Q+wYx9q1LAlEUsFNbeiU7WxvSCEBvc2bRCs6pMWCckbBCbEEacClELCxaFm6 GWMANyvTVN6I24NS9HpD7AwSba8v3sV/2rgbaR+3Eiwaaw2rUK0Yj9s+p4jnjkZfGsm muybqMujcb1xsHszktyogLKkJnwXSLXKr0CUxjFL7KhudkKdE0ocOa/av2H2rIUIrVO f5hEgA9ZvZoggW/fKXvXO+VaFhV1iu+U+NFKbz66NXNF+JnoXEFzYkUrS0DaYhgE41L N/dVlPMj6g== In-Reply-To: <86o7vdc1f6.fsf@mail.linkov.net> Received-SPF: pass client-ip=81.3.6.162; envelope-from=wilnerthomas@tutanota.com; helo=w1.tutanota.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295541 Archived-At: 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 # And I want to call (set-frame-position frame nlft ntop)