From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gabriel Newsgroups: gmane.emacs.bugs Subject: bug#59502: 29.0.50; [PATCH] Dedicated buffers per project Date: Fri, 25 Nov 2022 10:27:59 -0300 Message-ID: References: <87fse7lacm.fsf@gmail.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="38715"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 59502@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 25 14:29:16 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 1oyYlY-0009wa-6b for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Nov 2022 14:29:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyYlQ-0003oF-2p; Fri, 25 Nov 2022 08:29:08 -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 1oyYlL-0003ma-At for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 08:29:04 -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 1oyYlJ-0002aC-Ri for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 08:29:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyYlJ-0001Vp-Nw for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 08:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gabriel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Nov 2022 13:29:01 +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 X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16693828935751 (code B ref -1); Fri, 25 Nov 2022 13:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Nov 2022 13:28:13 +0000 Original-Received: from localhost ([127.0.0.1]:33856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyYkW-0001Uh-RZ for submit@debbugs.gnu.org; Fri, 25 Nov 2022 08:28:13 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyYkV-0001UZ-Cr for submit@debbugs.gnu.org; Fri, 25 Nov 2022 08:28:11 -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 1oyYkV-0003eq-4X for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 08:28:11 -0500 Original-Received: from mail-dm3nam02olkn2087.outbound.protection.outlook.com ([40.92.43.87] helo=NAM02-DM3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyYkT-0002Tv-EI for bug-gnu-emacs@gnu.org; Fri, 25 Nov 2022 08:28:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KBE2GuK/cZmgtgfzMU8lsQdKLM1+PdAL2RiCVgKApe8qkgZ2IHzyL6kLqO0ietGm3SHsZO5tCxiqfSa5vqGQsAr/axV8G1U7B8HhGyVF4uSUHPIyhh3dU0d7lIAxYwXf1D4/HaYkqCmcdw2+GxktP26t2KvMIJhWegZHHmgDZLuZSJKTT1VTR8COCKVF/r7qQGdBS1nIV/AbiHBoXH+xYMPOIgOJwIi6MLwiyZE2Txh6F/omPXZbIp+n6Ky7Ep7OOyh0gcQ8cq4xg1I3zhQb+8mYeCJqsmH3VjSUyA0czaL3BIGgF82mEb8Q0dLHJ0iSjwA1ykRQqLmzd/11jpm79Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=67TEezPY40rycj/EHOMazq0LSkELZaey9SLXk6HEexc=; b=SkgvRbrzcPZdrz6p39/sP1jeV/nFQjWzdbw4ElEcGK/ZSjjaZ64ng+Zm5DqBB1VcvuXov8QGhoHw4w4b4Ykb0t3HXOGCQ4RvA1c/PyHL4UiJELPGoTWgkEiWC/kvSVAY6WZOIdIa2K7566KZuXCxK09yUe4R/3DrZTR8zknTOEQl/a9+8vynX99Hx/0sZi/pagsFa02uO7TN184Zo0SLMs8btVK78BO/Lj10IPTJd1uPSllvX5Kic4mgHX3Akn+dsvYoRRJPdw3h0iMLRk1Xhe7Rmc+Vmu4FPh5dnLymjPrrdh5lGnlyALitSoah2E+2dZyqO/ZZjE1ovTJiUpgbMQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=67TEezPY40rycj/EHOMazq0LSkELZaey9SLXk6HEexc=; b=PyPx6NkLB9cqZl9nvpXZR2+J4aZfiFjKaTuLiM010FxJ4WB6vB8PeIPgYYFQlcb7W4o633BPLBukjB8P858q26wSBZVJIGOkn/Sl9jQyXcT01PJtntACxgBUlG4ASGZ7dCzmtEwu7qE6DglfeISPfulwHL6Fafuf064AQ4ggzTnGA5py3p5UUv1cNSWwg9Yva93BQoI9XuPNWi4KtDARKmFB4RLGqnyYtaKxnS0Xpa2JTV9h2wXiacW2vRp8Ol12THKC1DNuOM/uaJvsAYBGNidsfOT+tFMGhuD8FZh1oKdotzPHrYgjyByyY2kpkHOc362g4so35FQpwGzsOYrgJw== Original-Received: from SJ0PR06MB8609.namprd06.prod.outlook.com (2603:10b6:a03:40c::11) by MWHPR06MB2831.namprd06.prod.outlook.com (2603:10b6:300:11c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.5; Fri, 25 Nov 2022 13:28:06 +0000 Original-Received: from SJ0PR06MB8609.namprd06.prod.outlook.com ([fe80::33ae:d3a7:24ae:5c6f]) by SJ0PR06MB8609.namprd06.prod.outlook.com ([fe80::33ae:d3a7:24ae:5c6f%5]) with mapi id 15.20.5880.005; Fri, 25 Nov 2022 13:28:06 +0000 In-Reply-To: <87fse7lacm.fsf@gmail.com> ("=?UTF-8?Q?K=C3=A9vin?= Le Gouguec"'s message of "Fri, 25 Nov 2022 09:14:17 +0100") X-TMN: [3xnDpF6LtIMa3LmwBPFza00shdsLioGedoA0BpEDXuhK8ExYwdkT8XDCVU9j0oPP] X-ClientProxiedBy: CP5P284CA0027.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:94::14) To SJ0PR06MB8609.namprd06.prod.outlook.com (2603:10b6:a03:40c::11) X-Microsoft-Original-Message-ID: <8735a7upsw.fsf@hotmail.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR06MB8609:EE_|MWHPR06MB2831:EE_ X-MS-Office365-Filtering-Correlation-Id: 994adf92-c8e4-46eb-022a-08dacee8e22f X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qdzBd1uGDMgndYRLi18OXnfAUBKr91es06bbM0q2pke1zVDuMSiKxqbuv8guxNh6SohMKl+a3lVJ72jrw3vL2sN2qRuxC/Cd5o/wJ6tNgqlgdNVF7jIzUM3dhYM/NpZqrFgLEPObpWse8ZLfMOWvtIibyKgfu2puJDLNXYtkPaFl/dP04L1RXTnM8EBlmRV/rVVZelGOe9weGqrC4zUyJvjJaG7TyWFcC5QJ25Nux4X/XKSLTCorAiR/tZIQWTZGEPpd23D55yO3nuENSPJ16p57i24c7FP3bz+C7p/1l4eQuQk9x/gD+rUD3R8z6X9Xh1hw19hvRATguwDGCeUf+3aGOjPP4nMO2/2XgKLCRrFyg9vyGuUnWEkesQ+45v5LeswmqJXS+MiOZn3QiSQM7jDy+BdggcS5tEKNEXSVP8gfdcEtAWZevxhMjqXeKr6AIVCPt2e7TI15n3gzDe9FoYx7f2k8DDP5OlyJC/uHYLpVw5HVdeFcAfSPf+X04yuI9JsapRspHZOSN1ZRWD0tlySSPVAunfBS6zordaCubPhcXX6rxUlyQ7DmFb29hJXN/AK9sSM+0wx88OfKahJCz6BX5y3uVzDX6qKocWKe++pNnFIm3ULxHT2ZVw6QIGS74fenF0whNFOrmF/2bQjXgtRWn1owmQ33Kio8D/4febg= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gnAL2p/5YFgVdJsgwxOKyMBAESa4yADeTj7jVLJ3g8A7WnYtna/6NIHMKVarEJsYjhyFfEcUenN395tvvMRQuSg4JY8zg8o89wuMYPqg9lV6wj31J4oRE7qmxSuSV3t+LtCDR/3VLGCwNJpAEFDXGzsmk0w5iElSgo7w73diS1dU9WQRR+R2BdvaE4wwm+II2eyO3g5juZ4tSffwgpdFHTCG2oqzTWCJWbJwMCFYzqjOmmkFdDLXM2WNssSj6ADyuULx2C+k2FIEMutPtHZxIr4Z/hIgzpZqVno6Dt5ODP0ACyDbuhPwqkNQbdztThT8s0dRl+GE066KvNjA6JxczSKhvYIfFR2hhJVhVImgr5oGhAYuZNvRORedUhqRxMftTIeRzI88AAABq/7nu7HXUNusKCckzx4PMkrtVfZC2xhBP4eODF8oe8N9aZ60E++XqZtvb7juo9CavCUu0XR5stDEyLY7/Qw3A1B2tjtRRcWi3czhACNR7HdKBAt76WRn+XxjL50NYEWoImGgw6a/bmWK+FiXluRWObMlAm1wk5j6vKXDFY808gXroqPhlouydUPrCYZ8A7/GMHykiQIelbs8XuOPCVk5qf79b02G0spy8zD9M0ogQ+rYQHbIWHfJfYmRJOYx3n1TCHlhvWfF+JawLv2v/myHMnfKcxPuUe/iIo/8dShVdMMtD56DGBbjB65DFiz08LtGdqRiB7Am9UI9Tnt5SSxvAE76snpMEug8FeAlJlHKlGpg88 lzadOqlV3GBE8uaU0kEC+H7HtRVOJrYi9UMUHr3fiai0yj0+2AK5/JYC2LGPTXeHm6MTJ9OpUd4OCXBSFWGWWDHjSy9ug9Qfyn X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-89723.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 994adf92-c8e4-46eb-022a-08dacee8e22f X-MS-Exchange-CrossTenant-AuthSource: SJ0PR06MB8609.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2022 13:28:06.3822 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR06MB2831 Received-SPF: pass client-ip=40.92.43.87; envelope-from=gabriel376@hotmail.com; helo=NAM02-DM3-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248998 Archived-At: K=C3=A9vin Le Gouguec writes: > 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. > I agree, and actually my first implementation used the major-mode symbol as the argument to function project-buffer-name-function. I changed to a string to be able to handle the following cases: | Command | major-mode | |-----------------------------+------------------| | project-shell-command | fundamental-mode | | project-async-shell-command | shell-mode | --- Gabriel