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:27:39 +0800 Message-ID: <87v8t6e16s.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="27001"; 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:28:33 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 1o0IxV-0006w4-4q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 10:28:33 +0200 Original-Received: from localhost ([::1]:53634 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0IxT-00017N-Sk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 04:28:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0Ix0-00016t-5k for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60775) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0Iwz-0001g7-TT for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:28:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0Iwz-0006WG-QA for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:28:01 -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:28:01 +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.165502247625047 (code B ref 41719); Sun, 12 Jun 2022 08:28:01 +0000 Original-Received: (at 41719) by debbugs.gnu.org; 12 Jun 2022 08:27:56 +0000 Original-Received: from localhost ([127.0.0.1]:54672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Iwt-0006Vu-PF for submit@debbugs.gnu.org; Sun, 12 Jun 2022 04:27:55 -0400 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:43952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0Iwr-0006Vi-Nd for 41719@debbugs.gnu.org; Sun, 12 Jun 2022 04:27:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655022468; bh=C7zpoc9QMAE5lKvNSyproZIxVU5mxHnHQngtgClTaNw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=J03zB5m4l8cI53Q5ehndcjOHwBYR5HyU6TqlCtdpEkjlRDCNA00oU5kofvv68Ea5KwqAanCQQtsGctyPjgeGKmRiZ+B5v5jDF4HibZxPF9wV6/v3Unb88acSJ3l23H0h4cF3F7U0CzIFFPBjCA9OR4IFpkRV0y3xXxFQcWMD0oOORMe/JWxnTxUaHxxwfITk9+VsnE0LnP82phkXCGUjoCAQ8WIL+Nl/qa9PiYhxVroKvCB0nQ+O711mvj0aY4j5Ubz3j5E+bdfEpwQl3UsDDTSpj4xy+tptIT+DLzcGWxH7AKAg/yanhsg3jakRRFLqkSOngt+HHPOpkmELpKd1NA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1655022468; bh=pxcUJLIBUKxr2MiKj44uJ+cyO+5Ly07N3N5h0LREbPt=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=i2T5DWVXfFoOTu4EubhoJPtKgubBUR0d4GAwBPe85gLtXihy/0VlFZuEUS2GdnHzk9RwehY6ZJLKLMP4TpzrThET/7BOLztZQbBE2FO9EY+VsgCygAyGOC5feYa3af/C+BfpSMwk9qcUNE3JMISQnSRJxLk+zGvGI0TvVfj8FmGA7rKvcnPX6xZ2tidK8FM+PqeReqbS+Gzt7nRsWKA0oySQE6p+8WUlhclW9N8UQ56xnA1qlEhDF6iLII3qGi/bihOGBiCV3Rv3OVjj/HKy4HzVKKdG8VhUoF0HCyKXXQaSS99GIxmdoM6VynE7B+/90j2F9vs4vuMVmq/xc6O/OQ== X-YMail-OSG: VHaPaCgVM1l0AgqQC8aBQYOzYrpZch09oGEvnPmeGIqPHBFfrXxNBuXSckmJD6m I2xdBSRYXpOuZ45UTmoosEIjTSur8azxg7Mflkaj4CoxcwdwuLksbbsCnj9HK.QGPSEf3DCf1gGF UxqAiyP.GGtdyb4ow09wcG2V9VVXMwhYqWFhAkD5cL_hRmITkGMqcG4Dk5hsPLUaWikbV.gXBgjM EULSa9YbBXQrjAOBeOVa4_SSSfgkQpFUsCDmm6P9kG6.T3SyXt5qGCEoqhp7iWmSwFR3_CGNZUPz E.LUlRHRRi3LQ0h1S3N06ouXl2ZoISViqCTBPggySmHzQBMZrfxIQV2ENcXCIhi_bs3V5sUwvG7a Su6hV5D3GX_kguh6_Ekv.ZUKQ5AuUR8ONgSqCNiEXHzbHGmAby4uWaTQmkxwbF.ntf2pKlYg54Ys hklL6uEm.GlRhPqnGOwDvdkjNuddCZI.3KqNGAc380DK8w9hOv.495UDt1QRbYfSGkZF6DgPnKJX EWXHFqgnOGjkdJOIde5gFv62pk23Amfcmo7KSTgPzAjktlKn_ZR6aqxXz6F81MMcTarzL4VqDKje NjhTQm.Wi8MKdQy798mgJt9kMIeB3noOVcYOrUkBhv8N9Eki6fYYMpJ37nlWL0UpPMaqlJXlzaJj 8kR3aP12yNdpiGCPgdIom0IxjKFK4BwBXicGadjSekkeOPBlbNwTIFf3F0zKlC1lwse_25WRLePH 50sxPk9Q0c0DwV7Jv2yPP8NjZm6Jzsm3MUeYtXqII7NltmPBv4gvo5F3XLaHb8ek9m5MeZUkZqdD tX7MTMdtkFKiDmg1QmWfpqtJXRwxGy1Ywjz.IB6Ssx X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sun, 12 Jun 2022 08:27:48 +0000 Original-Received: by hermes--canary-production-sg3-5f7658c994-m7v88 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 21ad6ecb90c8eb8ddb8292db341e974c; Sun, 12 Jun 2022 08:27:44 +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:234339 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. [...] > WM_CLASS(STRING) = "vz_calendar-frame", "Emacs" BTW, that property looks very wrong to me. Is the instance name of the X resources you want to apply to that frame really "vz_calendar-frame"? If it is not, then you will run into difficult-to-explain problems with any customizations you make down the road. If you need to set WM_NAME by itself, set the `title' parameter. Most people have no reason to set the `name' parameter at all. Window managers that ask users to change the declared instance and/or class names of random windows in their programs encourage sloppy resource management. They should ideally allow matching on all window properties, which Lisp code can then set with `x-change-window-property'.