From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: make-frame-command with multiple munitors Date: Mon, 19 Sep 2022 20:28:44 +0800 Message-ID: <87a66vo8eb.fsf@yahoo.com> References: <82mtb0acta.fsf@gmail.com> <86o7vdc1f6.fsf@mail.linkov.net> <82pmfr25iu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16750"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: emacs-devel@gnu.org, juri@linkov.net To: Pascal Quesseveur Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 19 14:37:31 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 1oaG1i-0004Cn-VM for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Sep 2022 14:37:30 +0200 Original-Received: from localhost ([::1]:36322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaG1h-0000Gc-5o for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Sep 2022 08:37:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaFtT-0002Rc-JQ for emacs-devel@gnu.org; Mon, 19 Sep 2022 08:28:59 -0400 Original-Received: from sonic317-34.consmr.mail.ne1.yahoo.com ([66.163.184.45]:44002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaFtS-0005EP-3G for emacs-devel@gnu.org; Mon, 19 Sep 2022 08:28:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663590535; bh=znildzuRwlAaA/rDmW1QidAQZgqwn0zN05SVFKd/m8s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=XoFFLwY9ej3C8ELzr9bdFaXcRciAjPvTnSud2UoEDy4WINdSGp/aGHws30tZA5YUQkHSP/0eUxRdrB2uZlmlFSf8eW+A2j7e8jSfHQr9xkuESbfUDPWCAUwyRmWhO0d1TbCa7KjpZ34C2jXa9niGiuT/Pt0Cjp/SkehR952y5EO0/ySIfjH9mW5tsa/+c/CIRxwELrKKWAI/v7InSk5c3HTuVvZx5bWwNXFOV9Yr/L74jF1ibNCW6Jf/gjJXb9fWQX3XFkYDq66VhyefnxOMEYkK2mge3o9Kz8za2+bkQcLckds8yw2z/4apJNfq8w2slyNX03fALjfN4lnqU0B5Kw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663590535; bh=n0Exdftt1dpLn4P2b3XTEr5+EPaMdk/2rEv+82PCybY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=lw8+T54WU/wyaGXB/Iu3ookDmQtMsq9g8jlzTf6svlx9IFBqEONIw8VxYKlrsR5wgP85NRkV5qOquyRoffD42AEHrwptS804fF6YwNH4nEwnlVoLtO3CwzsczGDA2GqspLyewnAh42lIeu3g3gGHTt+wNjSH2WDe8NP5C7DXCX6wQa1q2uGzumLVVJFsC5DfLTrVYTV2Biv7CVZUtarwcuS3Fe+H4F+LxmuZN+Oomg0heKtbJ8YzxUf6YmiibaBQ6GI1OM7t6D72g6sEIJ7BXJOiRn7xl8At1sChB24My62fso5NBgd8I48NCCmJ5Ic+Fj0HKWBygKH9X7wCHQ4Hhw== X-YMail-OSG: 1DGolTsVM1lwd0W3AuXLeU1Fblyc8ymLmAhK_ae9m7gaK3YRhRw5QaB3jKuWHj7 ww9tBlObPSzrVxH.4wLgzmLpRcrHSV9OQQwKleqcu3_hoYzqkGJnle0zh.1zBrdVaJHtRlajRAIc b5A1iFF7mqcEGjf9zKmEDle4U2coglb.iNmlrSjEzzl36xZA5.TU1oz_.Fry_1Cpcr93U3_5YS28 Lr0JX0WvCBgol3UW.ys952iMOXh3_XRHsmdoVMAYQS840TdSpchBqC3WndMXuzapil5rXgt4coZJ i6z3mN6MaBelvixwO46.u0_Vua.1tkr9gbJY7vL9NFEPuvqeNasblLiPkhslHOs0fOqY9aLJAAg3 O3vp9nCVVn7DRwju5gLf1p45Reb6828BMSwur0dZJo3jhnA_uN0K9SyAS22Kn4phDTB2EuxpKiPy 70qURZ2qGo9WmDhsXCy2bq4MngE4EkevCiA3V0noxq0pioY4cFk7t.YQALXsAwmj5Gwu38VXf4rW zIH.lbK9H5vr2SpUsB2SUWoECBFkesJULKR8zgPuk_K3PPYxRR6HMiOMZCB6oQttHQLs6cxWual4 ky6lSRk4rgt3fL.9hMhvfcToIGmLey4e38d9dmIRYL3d3PZD76Mdqoqt05T_m7dkgDbc.5qrkZAU 3X6j9HiY80c4abNEpx3tPTj5q3ZxaBirRXYvONmjYzo7F1I6Ipr4ZxCj7dFvOclso7XycwjujFS2 KiRsRmsuObhcwNNUoGhH.vZh_k46XZbYXrKgdPJeovFAkr3iGJHcTr1Ck1JqxW.INmu_.4C3A4hA o4EAcUdDNJVhsN9qGcRPt.t2bzSqHhE2TX_474IyxB X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Mon, 19 Sep 2022 12:28:55 +0000 Original-Received: by hermes--canary-production-sg3-6bb8946c47-r6ds5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9f44ebc3bf2c365451b808c4a446944b; Mon, 19 Sep 2022 12:28:49 +0000 (UTC) In-Reply-To: <82pmfr25iu.fsf@gmail.com> (Pascal Quesseveur's message of "Mon, 19 Sep 2022 09:21:45 +0200") X-Mailer: WebService/1.1.20612 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.45; envelope-from=luangruo@yahoo.com; helo=sonic317-34.consmr.mail.ne1.yahoo.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:295680 Archived-At: Pascal Quesseveur writes: > I imagine there's a reason make-frame-on-current-monitor didn't > outright replace make-frame (personally it seems more normal to me to > always open a new frame on the current monitor, but I can imagine > that this is not the general case.) Because opening a frame on the right monitor is the job of the window manager, not Emacs. Notice how make-frame-on-current-monitor always sets the "user specified position" flag in the window manager hints property. The window manager will then blindly obey the initial position (0, 0 from the origin of the monitor) instead of placing the window in the right monitor while also taking into account window placement constraints and policy.