From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#59502: 29.0.50; [PATCH] Dedicated buffers per project Date: Fri, 25 Nov 2022 09:14:17 +0100 Message-ID: <87fse7lacm.fsf@gmail.com> References: 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="6625"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gabriel , 59502@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 25 09:15: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 1oyTrl-0001Zq-Kw for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Nov 2022 09:15:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyTrU-0004zw-Oo; Fri, 25 Nov 2022 03:15:04 -0500 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 1oyTrS-0004y9-Rq for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 03:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyTrS-0006jf-Ip for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 03:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyTrS-0005En-27 for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 03:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Nov 2022 08:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59502 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 59502-submit@debbugs.gnu.org id=B59502.166936406620081 (code B ref 59502); Fri, 25 Nov 2022 08:15:02 +0000 Original-Received: (at 59502) by debbugs.gnu.org; 25 Nov 2022 08:14:26 +0000 Original-Received: from localhost ([127.0.0.1]:33397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyTqs-0005Do-DP for submit@debbugs.gnu.org; Fri, 25 Nov 2022 03:14:26 -0500 Original-Received: from mail-wr1-f43.google.com ([209.85.221.43]:36449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyTqq-0005Da-Kf for 59502@debbugs.gnu.org; Fri, 25 Nov 2022 03:14:25 -0500 Original-Received: by mail-wr1-f43.google.com with SMTP id z4so5619292wrr.3 for <59502@debbugs.gnu.org>; Fri, 25 Nov 2022 00:14:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T8M+2VZQiruqtPfUQIoU7zO4MWu8Op8zF5jnLjtiC+U=; b=fbu0xEdmY4c2/DIZjnHvwpSI8SviRVX9E2kRmoHyiwiWTU4Ut/wpGm5DyRE6jbPB40 bqkNnOS1EX8E7BWdYdSlzEvvR08feQzu2KlN+ahHYS/p4zpilj3j3A6tu4Rh57T099aC J8n16iFMSpwQJ7UsvwOMenJIgZDAkW9jt5AWtQlPqK8v/Z1M742Sw+MGmdn0K7LsuhJs CF6DdNl0ftcLVDz/RuihIU9WrDnv5cTD/aAEPEapPaJdyzn161WowVtajwS3YyLtAeuN zyKMY283H8Vj2xS4YFCpTZMa9UVGHUdiSpSjoH8xHEx16thdiNpU4YQfWjGD5wWLH0ka 8+dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=T8M+2VZQiruqtPfUQIoU7zO4MWu8Op8zF5jnLjtiC+U=; b=5v9TInQ0MinJgXhyflYHGXTCst/O5HpyaYHAjrFB+7dLbAYJk8dmPh22ZCqBaj0gGN ohARLtlVucc+PZ1v/60G7lg7RyQaK0ln8Ecer83NFAl1OUTb5cCTEXeWHjKy6DP8m/1D q7lzPj99329XfzoXiGI3eSSkeYkPUOzbbRc+hhA6LVvvtUH1Y5VRW8LgMJ15lm+az6X9 X2LC0JeeXNpYP3ulhbXLVz/Glsvm69chMXeMR8wv8cxlqVJw2LMGZKHGRMIufdIc4nj3 dd2hs2EzyFP6lpBf9ePM7xzRnlpPC0n4tjMgDZIeEhPHCZERGicv0cugs6qswnPk9uZO 4tDg== X-Gm-Message-State: ANoB5pnCgmuqQVdiCY28V5oYRSn69nTg03zQk7pb1PzSU7ZD5fXPJemJ 2O+BGm2LLE2lNYY0xjcA+VG/+Pzo1bs= X-Google-Smtp-Source: AA0mqf5Df10Oio/ZzK/HXq+AHthrTK2OnPP458rM7/R226KSGcjJoXyrmFITHCjei8OnmSc09WUHKg== X-Received: by 2002:adf:e2c9:0:b0:241:db86:176d with SMTP id d9-20020adfe2c9000000b00241db86176dmr12675248wrj.40.1669364058368; Fri, 25 Nov 2022 00:14:18 -0800 (PST) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id bo24-20020a056000069800b00241d544c9b1sm3658740wrb.90.2022.11.25.00.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 00:14:17 -0800 (PST) In-Reply-To: (Dmitry Gutov's message of "Fri, 25 Nov 2022 03:37:09 +0200") 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:248974 Archived-At: Dmitry Gutov writes: > For the rest, this probably makes sense. I do wish we had an "upvote" > button on these threads, to see how many people are interested in > this. > > Anyone would like to +1? =F0=9F=91=8D I'd say solution 3) is the one I'm most attracted to. Idly wondering if it'd make sense to also pass the major-mode to project-buffer-name-function, since string matching might be unreliable in some situations? Can't think of any concrete problem off the top of my head, I just have a vague expectation that mode symbols might be more stable than buffer names. It's unsubstantiated though, so feel free to dismiss. FWIW I think the "serving suggestion" from the OP=E2=80=A6 > (setopt project-buffer-name-function > (lambda (name) > (format "*%s-%s*" > (project-name (project-current)) > name))) =E2=80=A6 would make sense as a defcustom alternative (and could then be re= -used by project-buffer-name-default). Thanks Gabriel!