From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#41719: 28.0.50; [FR] emacsclient should provide '--name' option as emacs Date: Sun, 12 Jun 2022 16:02:19 +0800 Message-ID: <87czfefgxg.fsf@yahoo.com> References: <87img65htu.fsf@smoon.bkoty.ru> <87sfoah3gl.fsf@yahoo.com> <83mteiwfxa.fsf@gnu.org> <87fskagzas.fsf@yahoo.com> <83edzuwegz.fsf@gnu.org> <87y1y2uxmu.fsf@gmail.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33516"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Eli Zaretskii , lomov.vl@yandex.ru, 41719@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 12 10:03:22 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1o0IZ8-0008at-AU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 10:03:22 +0200 Original-Received: from localhost ([::1]:46788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0IZ5-0002Xe-JW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 04:03:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42720) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0IYo-0002Vv-Ee for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:03:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0IYo-0006QQ-6A for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0IYo-0005u0-31 for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2022 08:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41719 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 41719-submit@debbugs.gnu.org id=B41719.165502096222661 (code B ref 41719); Sun, 12 Jun 2022 08:03:02 +0000 Original-Received: (at 41719) by debbugs.gnu.org; 12 Jun 2022 08:02:42 +0000 Original-Received: from localhost ([127.0.0.1]:54626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0IYU-0005tQ-L4 for submit@debbugs.gnu.org; Sun, 12 Jun 2022 04:02:42 -0400 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:46631) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0IYQ-0005qH-Pz for 41719@debbugs.gnu.org; Sun, 12 Jun 2022 04:02:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655020953; bh=seBDiwjUIjx+IJSu5vi9ZJHHF19YbkQZtxANNaO4dBk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=M0b2LdjgGqCXB8La4oZwfNN9dW23TOoNV7NKH/f9qbgU2tU0sVfQq6Q+hCYMCPjsP32F4hUxtgtca4Wjo1BaO5EKkkEAllfFIzCSu1+SiM0KDtG4lJZpEU2orYwEkt71c+Zs5tIwomdmzyCEWFQFEm1/v99kI2LpYI/2jc9i0vZdNDBI+EQTNpa4jpw7DB2ly2kYVDcKgkmM+rjy0g6kA2JCMLjVus7ziv5JPlm28rh/pm0accSB6WyhMAb28ZMJ2G+TaDG9KtM8xt9eEw1mYkt2RYRM1+2UwengS5e3DLga4kpsL5gwTjTp/c6CLgEWnOC480Lko4e0AXR4FD1/7A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655020953; bh=tr0WcFQ0w0q5K4GzMOI8WkTFLxtXpQh7ujsDOHzLpMb=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=gTCcQV9jphIvWlShGkp6fW0hyPG4XmBXd04WJlxyhsOIsw0gpETuZKrnM2eQQxtMWbygsgbkoQYLe6zojpnWsuOu0AftIJZPdqHJKelUnYmdy4meAgZrxOS2IsYhST/NaMcw4ag/NTiUZXLTpicLj/g9Komjezi+c9AF5QTs/oHh9yTqu5AQI7du60eMZclMIdMl6FhQjILmAOwzNptZDWn92xyAZDflOy3xzRI4O/g/Uy6YP+kH8ulmyNIfWmPq2t4J/xULD1utWuz02xkQOJsqBqe72uf41LI4paQGv+cVRVUlFHt/G7PdKO2AK8+evT1sMPX9N04WwHRtXSxM7w== X-YMail-OSG: TY1TfjYVM1khneoh5IkxDUmNK3sujOUKjR9VPXjgC258NCnbIXbQjuLaUMwCqzm JO5VZ6DlWJYIdo4Dfv.60kk8Y18Q9Xv5llFaH9ppps3akKhLZJLYsZCUtavBClDqU6NZKqBcY5kd hDsrQMXGjSEJf8WG.9ey7PGt72SdzQ5bJLf_86DHv82HDrx.98g4tpWT1W6Kx6n7bIdeb3.3qvEH oVuRV97R4tSS8_X.XTzE_Nx0nDjI1aKORPkVih6GAS9Q52h5iE0kS8LtFyEG6aKOQ9Uiu802I9J4 n6bMP3qQh1Pu2P7wh3MkCSDyS6V0tC3pTRFe0EPf9FNIXkmxDTXMVviZ2fQS7XKL51E_bpjozDLm 2ZbXcOKSRdcv3HplKJR4fVzkOpz_lenjqTv.wbeEE4liBWs9t8O6lILhQwmHQ3AY8dfmEHPVD0hy Lpbva3SgMVaPbguSRymYjXR5dpindBeuov3BjMJ6FgP36XiY2N1yLm1PzGCxf4TAy3n3A6W5G1bE 4Ld4r4e6TtBCl_0mJ6sggKlB1BpnQu7YAfgx4Qx0MobiuujewYFe77vIsycd6ksb8UKQXsna..Yh paCZ9EGJ4N.vvHnFEPeDK3NQNAlqCHeOQe1aWJHJhmNu4cpLJPItygt5viOcVUI3Rtp.PyiuMBs8 tgM6CoVOV2OaT_W4tV9KOK6eAvjU6gXJ_afzKHfXmu6.kdzY57wyoe4IgXqZYOUbwo_T2D4kA8e2 3tPSeRHvFVamSL1YIJwDo44LosgFXylgA2J8fm2M9.wroVAoRjoX.FQEqGSiUY8I.aqkxVavXqof OhJs5NePCEmsGkSHXIrB9BAiCD5Wm76cv4p2O_pqJM X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sun, 12 Jun 2022 08:02:33 +0000 Original-Received: by hermes--canary-production-sg3-5f7658c994-djglh (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8dd4df6d5f15938364ba8e11404045e4; Sun, 12 Jun 2022 08:02:27 +0000 (UTC) In-Reply-To: <87y1y2uxmu.fsf@gmail.com> (Visuwesh's message of "Sun, 12 Jun 2022 13:22:25 +0530") X-Mailer: WebService/1.1.20280 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234337 Archived-At: Visuwesh writes: > WM_CLASS and WM_NAME are commonly matched against in "window manager > rules." For example, I have a script that essentially calls > `make-frame' with a specific frame `name' [*] which I then match against > in my window manager configuration to move the frame to the top right > corner of my screen. > > [*] I see that Emacs sets WM_CLASS and WM_NAME to the `name' frame > parameter. > > % xprop |grep wm_'\(class\|name\)' > _NET_WM_NAME(UTF8_STRING) = "vz/calendar-frame" > WM_CLASS(STRING) = "vz_calendar-frame", "Emacs" > WM_NAME(STRING) = "vz/calendar-frame" Class hints are only set by Emacs under X toolkit and no toolkit builds. On GTK builds, it's set by GTK to a value set during GTK initialization. BTW, the `name' frame parameter is rather special, since it's set by `x-create-frame' binding special values to `x-resource-name' and `x-resource-class' during frame creation. So for the record, changing the `name' parameter of a frame after it is created will not change the values of the WM_CLASS and WM_NAME properties.