From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#41719: 28.0.50; [FR] emacsclient should provide '--name' option as emacs Date: Sun, 12 Jun 2022 14:24:45 +0530 Message-ID: <87leu2uuqy.fsf@gmail.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> <87v8t6e16s.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30649"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: luangruo@yahoo.com, eliz@gnu.org, lomov.vl@yandex.ru To: 41719@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 12 10:55:19 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 1o0JNP-0007sd-Rk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 10:55:19 +0200 Original-Received: from localhost ([::1]:37142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0JNO-00048Y-4x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jun 2022 04:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0JN8-00047W-VN for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:55:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60815) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0JN8-0005EF-JX for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o0JN8-0007Io-Ip for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jun 2022 08:55: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 X-Debbugs-Original-To: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Po Lu , Eli Zaretskii , lomov.vl@yandex.ru, 41719@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165502409727986 (code B ref -1); Sun, 12 Jun 2022 08:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jun 2022 08:54:57 +0000 Original-Received: from localhost ([127.0.0.1]:54706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0JN3-0007HJ-0o for submit@debbugs.gnu.org; Sun, 12 Jun 2022 04:54:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:44636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0JN1-0007H7-Nq for submit@debbugs.gnu.org; Sun, 12 Jun 2022 04:54:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0JN0-00047B-OI for bug-gnu-emacs@gnu.org; Sun, 12 Jun 2022 04:54:55 -0400 Original-Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:40802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0JMx-0005DY-QY; Sun, 12 Jun 2022 04:54:53 -0400 Original-Received: by mail-pg1-x542.google.com with SMTP id f65so3033565pgc.7; Sun, 12 Jun 2022 01:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=QbDyA9b9fHC0etFxnYQ+ZKoGpQF/nBs9QsdFC7Rdqgw=; b=NIBpqmGdU1YNTjDg4VcbEsIyWlNdPaj22Jn5q50PDFicqTV1oFKWLt6XAlq2+rHT9C I/ncKn5ZuqPP7NIHMC65cXP3AS66QNDlrekRowqlCncXLFlUTg4ZmoaVr8NUf1OB/Tqm FfC52kurhKkG1mFmFJPHFJzcHIR4Bih6I6QW6fyYFkBEPNSa+bBjdZZKUZrPa5oFdA7H BZdGsK8BHoksFevMP6nWF+X01Rf56WO+ppCzO87d3jBYuRBgkVFzCIRLjVLKNfqabff4 qGY1nu4DN17dv3sONdV83gWo1DrSbHdsqEcjJrcbTDryvbBJAoHut8JHyQAyWGnNhwI+ UoIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=QbDyA9b9fHC0etFxnYQ+ZKoGpQF/nBs9QsdFC7Rdqgw=; b=fj0Mwqt213GfYQG1Rg+SnY/TR1okLwWFAD4xfi6T+Leh4gZ84cJ83tkZQcLQIkZJF7 ZJ8wb7+7+EZPf8EsnzN5uFx+Bg+E/byMzq1g4T+9q+jN7NsqeR+YAoUsCzHyVwA71trK WdwszYv8CQVcp10SETM5oFtGXokO+Gbxjgot7a8yCDIAbd2Mzo2Xr2lUeU62D9HoNQG0 Hr1wztlL8RBa0a6IJ8VlUnOelnZzgh+fq8WNqC8rfN9DKOIeMbWkFrFPHHmLB1HxdMfZ YEymUUo59vq6fHJlSnqJ/0mG2SMpelSHLNsyWTid4VJBhHo03I9ROYx5n+7N4n/z3nAI G++g== X-Gm-Message-State: AOAM530xN49QCxybJ1xtodq7hnAs5KiR1elg5MwzL5rCZoaHkh8N5c+M z+BorXfkRxGnlKptQLI6efqDZnRiSPk= X-Google-Smtp-Source: ABdhPJy3YsEKwsQ/9hT3AznuK2ZNwi6MwIhdRS1ubTygjmEo3FK5Dms28rwdlkO6V23RCk/vVEzkFA== X-Received: by 2002:aa7:9103:0:b0:519:3150:6b3f with SMTP id 3-20020aa79103000000b0051931506b3fmr54361834pfh.67.1655024087975; Sun, 12 Jun 2022 01:54:47 -0700 (PDT) Original-Received: from localhost ([49.204.137.20]) by smtp.gmail.com with ESMTPSA id g16-20020a17090ace9000b001ea840392eesm2748457pju.32.2022.06.12.01.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jun 2022 01:54:47 -0700 (PDT) In-Reply-To: <87v8t6e16s.fsf@yahoo.com> (Po Lu via's message of "Sun, 12 Jun 2022 16:27:39 +0800") Received-SPF: pass client-ip=2607:f8b0:4864:20::542; envelope-from=visuweshm@gmail.com; helo=mail-pg1-x542.google.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:234342 Archived-At: [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=9C=E0=AF=82= =E0=AE=A9=E0=AF=8D 12, 2022 16:27] Po Lu via "Bug reports for GNU Emacs, th= e Swiss army knife of text editors" wrote: > 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) =3D "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"? > I created the frame like so, (make-frame '((name . "vz/calendar-frame") ;; (minibuffer . nil) (vertical-scroll-bars . nil) (font . "monospace-16"))) > 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. > Probably because I noticed the `name' parameter first in `(elisp) Frame Parameters'. > 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'. I don't really understand what any of you said means. All I wanted was a unique WM_NAME so that I can move the frame to the top right corner. These frames are usually ephemeral so I haven't had any problems so far, .