From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71971: 31.0.50; Add user option server-window-alist Date: Wed, 10 Jul 2024 20:02:01 +0200 Message-ID: <87plrlf7mu.fsf@gmx.de> References: <871q463hke.fsf@gmx.de> <86cynq4vfa.fsf@gnu.org> <87msmuvc5m.fsf@bernoul.li> <86wmly37c6.fsf@gnu.org> <871q43vl1f.fsf@bernoul.li> <86y16bzs0w.fsf@gnu.org> <87wmlutmhs.fsf@bernoul.li> <86cynlo4wz.fsf@gnu.org> <87ttgxtdfr.fsf@bernoul.li> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14039"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 71971@debbugs.gnu.org To: Jonas Bernoulli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 10 20:03:17 2024 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 1sRbeu-0003PT-Oy for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jul 2024 20:03:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRbeb-0005nm-Ig; Wed, 10 Jul 2024 14:02:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRbea-0005iq-2x for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 14:02:56 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRbeZ-0003b5-Qo for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 14:02:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRbeg-0004ae-0M for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 14:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2024 18:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71971 X-GNU-PR-Package: emacs Original-Received: via spool by 71971-submit@debbugs.gnu.org id=B71971.172063454017593 (code B ref 71971); Wed, 10 Jul 2024 18:03:01 +0000 Original-Received: (at 71971) by debbugs.gnu.org; 10 Jul 2024 18:02:20 +0000 Original-Received: from localhost ([127.0.0.1]:57116 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRbe0-0004Zh-Bb for submit@debbugs.gnu.org; Wed, 10 Jul 2024 14:02:20 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:44251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRbdy-0004ZV-El for 71971@debbugs.gnu.org; Wed, 10 Jul 2024 14:02:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1720634524; x=1721239324; i=michael.albinus@gmx.de; bh=az6mLjrslvqywLxpMbAHY22Z564xqNwgghXPgSnJPl4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=FapC9aBIHc8aezjn8RRe86l4L+RQUo7zgxCHX7bZjzGIu5XsDfGqViy0ys5C7e4O GWQ9K+6NIN7ugOMwemeuJXTIWgvdFzDW/85VGGWHNZdqvjvGVaDfe6Tq30EMmIFQf qV4UNseuLRx7eAffl05hfzXFUmrETM6GhexKDKhtkbltv45lJlvieMN6yLpPzJhh9 YgenHLXYRvpdyXoxUoBJOirKuJq2Kk001lUwtKBlFbXHYbAD/cjra0oU+qx1Zeooc taP6oNCUDQVtU0B16FQsFgZoxMNpZww5LLtg9BwMflABUQUVdVU38KPDtvVj75Rr8 23gj+hbtZw+Ooce5ag== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mt79P-1s7rtd16JV-011oCG; Wed, 10 Jul 2024 20:02:04 +0200 In-Reply-To: <87ttgxtdfr.fsf@bernoul.li> (Jonas Bernoulli's message of "Wed, 10 Jul 2024 18:32:56 +0200") X-Provags-ID: V03:K1:mQKTdvLdBgbvboNfUsW9ri0+8Y9/8xI0M9ZTaImWLd1Sn3cIR7O R182XTA7BBdnK+uJ8N5NMnojU7UZ8R0uJLNm6hmjaWizz8blFt2ed4Rw5NWn94hAZ139yjU MyTI8a+lL6CkdJ8IM9mWgSgE9bzEGMsLqjY+CmGRxKB3pPxmpfGt7fKgN2I6uWwCv0AhslZ MsdZV3RMrG5XMpz/KiT8Q== UI-OutboundReport: notjunk:1;M01:P0:+IcbKwm09/g=;ZhwZXkAHzDz0LarwNPSqJ4vL4Jy nyzmG8TWKRJDn0zYtpHFWMC+vytJGWjx/k0M1fWC46A8tWuxgUxqZYTUmQCqcLsfe+bSxv4nI plWJJFoFb/AttlMGb6q1FVUGDG8e0mN29vk3szjCPM3dyYGcNC3k0DefQrMfx23VSX2uK/Y/r +1Hy+QrEcl8NoXNBtlJQdIy8Tv9pPZDZJfkGi39VOIux4GFMdRl3TzUbUdiJWbc1/Jmk8qLL9 d9OJrRziJuId2ckLOpidic8Co7HcQ8ND0Dx+yps/uT1CqO6W9CnQL5gn5XF9VGBvo2qy31tvP 3FmSDja5pDZpxnUMVqiN5v6p6h191ZPAIbm2ZPleVCvayFB5tyGxO/Qj7G0j8Z4JzZ87OGhSf WC2wWpPBf27gjz1LYv5UvvmEHzMGF8jgD9pK5ZiiW9e2suryziYuMN2NIjg8yaz1ty3d/7v+O S1femfp1ZUH9LX5E89pBN1CVW/OlPup8hEpbtwf5+5Jru+hxT7NIQjdgsq2s9HmcSBGRbBNZT RRixi3qdi8ja/NiJZ62z3FDtNddbommvWcSFVfdJQjrno3Y9p70ZC+uBXcNi8fp9i3d02yhQ+ QPy4tCM/WoGaPfeGyjk5RLnv9LpS0HYf6kMU+/9LxsH3rp6pjqzsycO7Slc/WUunFbzmpAl3p fKm1H5a2eMznKRK52WGJ72kekyi/maMQJ9B82s2axUzwa0HaTfOwSxKs0/2iCrufg1pTtYpJv aSQLCzzxgkC6HIWOyOZpJQ+QoICmNzqi7FvnOXkUFqLxc+YXmqe0XZnlZyM3qbKuE/PNg18y 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288695 Archived-At: Jonas Bernoulli writes: Hi, > Thanks for the clarifications, I understand better now and agree its > a worthwhile goal. Unfortunately I have no idea how to do it, but I > look forward to see what you and others come up with. I can't think > of anything myself, for now at least. What I could imagine is, that emacsclient gets the option to send an identification, a string, to the server. With this, on the server side, a set of preferences (variables) could be set for a given identification, which matches a regexp. Not only for server-window, but any variable. This would look like ((REGEXP (VAR . VALUE) .. (VAR . VALUE)) (REGEXP (VAR . VALUE) .. (VAR . VALUE)) ...) Any VAR, like server-window, would use its related VALUE, which has precedence. Packages, like magit, could prepare such preferences, and activate if the corresponding emacsclient sends an identification which matches a regexp. User could prepare their own preferences, and invoke emacsclient with their private identification, like 'emacsclient --ident="my-identification"'. On protocol level between emacsclient and server.el, we would need a new command '-ident'. Or, if we must be backwards compatible, we could use 'eval' to set it, or we could use a special formatted '-comment'. This doesn't say which variables we recommend to use for preferences. Just a mean to communicate between emacsclient and server.el. > Cheers! Best regards, Michael.