From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 05 10:03:00 2024 Received: (at submit) by debbugs.gnu.org; 5 Sep 2024 14:03:00 +0000 Received: from localhost ([127.0.0.1]:37720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smD4d-00041K-Qn for submit@debbugs.gnu.org; Thu, 05 Sep 2024 10:03:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:57720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smD4c-00041C-03 for submit@debbugs.gnu.org; Thu, 05 Sep 2024 10:02:58 -0400 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 1smD3Y-0006qP-LD for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2024 10:01:52 -0400 Received: from mxout6.mail.janestreet.com ([64.215.233.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smD3W-0005aC-Qn for bug-gnu-emacs@gnu.org; Thu, 05 Sep 2024 10:01:52 -0400 From: Spencer Baugh To: bug-gnu-emacs@gnu.org Subject: [PATCH] Add project-find-file-in-root Date: Thu, 05 Sep 2024 10:01:46 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=janestreet.com; s=waixah; t=1725544907; bh=4L797ns/Z4kdlBMiLGmEcDSWJZTgjHgIqe69rFThBlA=; h=From:To:Cc:Subject:Date; b=iKaFTYLpy9UF+DvC0ceWIgu17gGmvsKX9QmzHNeAByoiKnPL7a89haPSajlmw5vuc CYU/mHJhuZzZQJbPFuQuZEspwkESFWprSFSVP0iyS3FTQGw59JalvGMPGpcIquvICc +QYg3aiB8AN9PdwnvxaCQ1nbnFTnU3/aGrO1Q7/xCN3v6yMYWCm6nV4J6OPmOHQ1XD 1zC+yyy8C0IPolVlK+oZ+zJPhy/rBK+WIiTIqdJu23mOnMYM/SZC4gFNAvfMbAGWD9 X5gsmhf/Ibzl3OEUNSG8ZPgJdmcq5G3sg/QbKR7SZowTxbt7Y83ahINUy0zTdGwxvo F0FcYibQbxR+g== Received-SPF: pass client-ip=64.215.233.21; envelope-from=sbaugh@janestreet.com; helo=mxout6.mail.janestreet.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: dmitry@gutov.dev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Tags: patch Several users have asked me for a command which is just find-file, but starting from the project root. In large projects, where project-files is expensive, this will have substantially better performance than project-find-file. Also, it allows opening files which aren't included in project-files without paying the further cost of running project--files-in-directory (which is what happens when passing INCLUDE-ALL=t to project-find-file). Also, it may help with user confusion about why project-find-file doesn't behave like find-file. (which I've encountered a few times) This command is equivalent to C-x p o C-x C-f, but it's nice to be able to bind it to a specific key. Overall, this is easy enough to provide, so let's just do that. In GNU Emacs 29.2.50 (build 16, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.12, Xaw scroll bars) of 2024-08-26 built on igm-qws-u22796a Repository revision: e6d04c06a7eb6ce932b52a346368d02b7a811a00 Repository branch: emacs-29 Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Rocky Linux 8.10 (Green Obsidian) Configured using: 'configure --with-x-toolkit=lucid --without-gpm --without-gconf --without-selinux --without-imagemagick --with-modules --with-gif=no --with-cairo --with-rsvg --without-compress-install --with-native-compilation=aot --with-tree-sitter PKG_CONFIG_PATH=/usr/local/home/garnish/libtree-sitter/0.22.6-1/lib/pkgconfig/' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Add-project-find-file-in-root.patch >From 960e5fc3486aa56d42c8c90fae025fe51c4cd7ad Mon Sep 17 00:00:00 2001 From: Spencer Baugh Date: Thu, 5 Sep 2024 09:56:50 -0400 Subject: [PATCH] Add project-find-file-in-root Several users have asked me for a command which is just find-file, but starting from the project root. In large projects, where project-files is expensive, this will have substantially better performance than project-find-file. Also, it allows opening files which aren't included in project-files without paying the further cost of running project--files-in-directory (which is what happens when passing INCLUDE-ALL=t to project-find-file). Also, it may help with user confusion about why project-find-file doesn't behave like find-file. (which I've encountered a few times) This command is equivalent to C-x p o C-x C-f, but it's nice to be able to bind it to a specific key. Overall, this is easy enough to provide, so let's just do that. * lisp/progmodes/project.el (project-find-file-in-root): Add. --- lisp/progmodes/project.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 983242628f0..cfb81e5425c 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1069,6 +1069,18 @@ project--find-default-from (file-relative-name filename (project-root filename-proj))) filename)) +;;;###autoload +(defun project-find-file-in-root () + "Call `find-file' in the current project root. + +Unlike `project-find-file', this doesn't provide completion over the +entire file tree. + +This is equivalent to running `project-any-command' with `find-file'." + (let* ((pr (project-current t)) + (default-directory (project-root pr))) + (call-interactively #'find-file))) + ;;;###autoload (defun project-find-file (&optional include-all) "Visit a file (with completion) in the current project. -- 2.39.3 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 06 12:20:27 2024 Received: (at 73044-done) by debbugs.gnu.org; 6 Sep 2024 16:20:27 +0000 Received: from localhost ([127.0.0.1]:54061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbhC-0000tF-Ld for submit@debbugs.gnu.org; Fri, 06 Sep 2024 12:20:26 -0400 Received: from fout4-smtp.messagingengine.com ([103.168.172.147]:50465) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smbhA-0000t1-UY for 73044-done@debbugs.gnu.org; Fri, 06 Sep 2024 12:20:25 -0400 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 5DB9F138021B; Fri, 6 Sep 2024 12:20:19 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Fri, 06 Sep 2024 12:20:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1725639619; x=1725726019; bh=te1pinUiTMBn0T1mM0473jx0egOW+wGb5GgrP/pbHL8=; b= ER/u8wMSB8KF1aWR2YW58FzDTpZrzMowVJ5Y5rbH0Q+puS9dyWP4YPNRAtcGCb43 GPDpZcPLkpQDt9og4fHNQOM8V4tyAIhoXLKQp2hJgkzYGY1NO3mBmP/0WQyZhdP/ dFaay4PvmbulCn/ELpD0oGVMbKNBgBdxgFjvnl/C4nFsLo5eICYXk7oeE4Ezvfg4 8GkAd6mS9hHHN4CMo8w6ufxJbdzmKt0Ya3QB1an2wEtBwEnp2u7fb9lUKXSuetGw v4+pSExhphew6GL5oMA5RHIgrBBoZOJRP5bdiBrkty10m0reaNrDGXDzD4t0EH46 RV0Gfn4M0DY+6sDUIW/xJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1725639619; x= 1725726019; bh=te1pinUiTMBn0T1mM0473jx0egOW+wGb5GgrP/pbHL8=; b=K Kxs/mvXmJMLvqruombx4qVt4PiMFGJUATzrap0elNMtjxJeIeCUcO/c0QyqDe2Wk juwpVsZv+/uun897lxaT5pu0Lfnv9K0W3su0maEYntZ9LlO4fMQDZD/DTFtN/0E8 EI6i3r7mqCjP5YJiW4rI44nA3ztOZu0sBOJwwOFV0GpOoZlsIJ0jUzgq1Khck85g AFgxESDBDb9HK42RS8mYyQlLNaalTwXQ/uhGA3p5ENVsX/Hpgxng3F7nWnwbjNuQ N2zk7UFtJF89plhxgKh4imO5/QyZ0+9HyNkqwCEWH6ui/rpSWs4aW+Tlog+GRjYX ed7ocZCU8YmA3wwADcOUg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeiuddguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnheptdfhuedvtdevleegueelvedvjeevheffveevhedv uefftdefhfdvueeggfetgfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho pedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehssggruhhghhesjhgrnhgvsh htrhgvvghtrdgtohhmpdhrtghpthhtohepjeeftdeggedqughonhgvseguvggssghughhs rdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 6 Sep 2024 12:20:18 -0400 (EDT) Message-ID: Date: Fri, 6 Sep 2024 19:20:16 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#73044: [PATCH] Add project-find-file-in-root To: Spencer Baugh , 73044-done@debbugs.gnu.org References: Content-Language: en-US From: Dmitry Gutov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73044-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 31.1 Hi Spencer, On 05/09/2024 17:01, Spencer Baugh via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > Several users have asked me for a command which is just > find-file, but starting from the project root. In large > projects, where project-files is expensive, this will have > substantially better performance than project-find-file. > > Also, it allows opening files which aren't included in > project-files without paying the further cost of running > project--files-in-directory (which is what happens when passing > INCLUDE-ALL=t to project-find-file). > > Also, it may help with user confusion about why > project-find-file doesn't behave like find-file. (which I've > encountered a few times) > > This command is equivalent to C-x p o C-x C-f, but it's nice to > be able to bind it to a specific key. > > Overall, this is easy enough to provide, so let's just do that. Makes sense, thanks, pushed to master (adding the 'interactive' form and a NEWS entry). The name is a little verbose - if anybody has a better idea later, they're welcome to suggest it, there is some time to do a change. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 06 13:44:58 2024 Received: (at 73044) by debbugs.gnu.org; 6 Sep 2024 17:44:58 +0000 Received: from localhost ([127.0.0.1]:54123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smd0z-0005Nr-Sm for submit@debbugs.gnu.org; Fri, 06 Sep 2024 13:44:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smd0x-0005NZ-Ob for 73044@debbugs.gnu.org; Fri, 06 Sep 2024 13:44:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smd0s-0002wC-2a; Fri, 06 Sep 2024 13:44:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=GwrfYXMYzmfUXkhaJ7QLYcBpj4ANxjAZiiWedzd4B0o=; b=YhRK6ZwCdQmN X4lmejxwHJSMs8DzHEumX6a7pyaarjisLi/eJ28R4FdDgIWBdZjjFTfM2wa6xVQu5npaPe9EQ8Ajm G/LV0x94cyx86Udwv1CWOu8MeiIIerId3HcvjBwAkQ2Z5Ge9S4aYTJQI7oj3MAO04yixLDxDcT1l5 XplJuUU3PLwBVZY5+rh+XR257lKLCu2A5PHp7dKrx8LmKX224Whzc5tAIOtNRzXVK2/j1aLGtaYS2 QlvW2vM540e9ENM9MCxbl6jVXgTIL892EvKGeuT9C/J88+c0Y2/2I/JGxzKwPSF9KPO85Dg3N6Ztc nke6Aqy6fXPUdBJ08qE2jg==; Date: Fri, 06 Sep 2024 20:44:47 +0300 Message-Id: <864j6s1xtc.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: (message from Dmitry Gutov on Fri, 6 Sep 2024 19:20:16 +0300) Subject: Re: bug#73044: [PATCH] Add project-find-file-in-root References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73044 Cc: sbaugh@janestreet.com, 73044@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Resent-To: bug-gnu-emacs@gnu.org > Date: Fri, 6 Sep 2024 19:20:16 +0300 > From: Dmitry Gutov > > > This command is equivalent to C-x p o C-x C-f, but it's nice to > > be able to bind it to a specific key. > > > > Overall, this is easy enough to provide, so let's just do that. > > Makes sense, thanks, pushed to master (adding the 'interactive' form and > a NEWS entry). Thanks, but why only NEWS? I think this should be in the user manual as well. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 06 16:05:16 2024 Received: (at 73044) by debbugs.gnu.org; 6 Sep 2024 20:05:17 +0000 Received: from localhost ([127.0.0.1]:54230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smfCm-0004jc-JW for submit@debbugs.gnu.org; Fri, 06 Sep 2024 16:05:16 -0400 Received: from fout6-smtp.messagingengine.com ([103.168.172.149]:58011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smfCk-0004gs-FA for 73044@debbugs.gnu.org; Fri, 06 Sep 2024 16:05:15 -0400 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id 1D63E138021A; Fri, 6 Sep 2024 16:05:09 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-07.internal (MEProxy); Fri, 06 Sep 2024 16:05:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1725653109; x=1725739509; bh=C7D2huV/A3wd5/qSjAp1kZauf2MkZW0Vql7jXpexs7A=; b= crGx0AJ2mLt7Mejp8vLCyhOxQCd2LQnbEOje+pdPYEt8KEtut/AURqwOQs35bW3E xcwQKc8Z3mFaJR2ZnMRRhaORL+xxuS3iRYNhzcLAd11mwdWjxH9oNLGDr6jHjTVt jaxqEA/EogtGD0MW7nckd228a8daVGlu2ToQjSnadzElZq6yM9mr3VPnvuXqCqxy PsmKqa4CkBVLg+ygZWPiaW3IoIoHL2ZsijugFcyvDs7OY/wmqQJa0uS0JaPPwZUw Jl2LoSzrGF87m5xVahHEMtzDCHBmN4OcJOUYzxelolK3rvzWl9hPW2pPqTnEbr8q IhW21hh5AGH33t+HEFtjdQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1725653109; x= 1725739509; bh=C7D2huV/A3wd5/qSjAp1kZauf2MkZW0Vql7jXpexs7A=; b=T jLNBuYIzDDrI+T3PweUJSGN2fptYIkNFOWjo/X7N7QSkM6XTwL4rT0Mkp9ToRf0p YKKFi9GgSMBdSTjHy5z3A+I175/7HuvqB6zqLdFI2mKILt7T6UdGR9XF5iJVt9D9 mCWA1TNpeRmwg8WqKXuNTbT0rPInNZahRU/FO0kx2rAMY0REqfblQjeDNKsjLyDD FySKFVGZmLHtyiyLxIqTV9OXom6LE5Opjm0dNirpdOPt7EMctp5le0NtOjNtjpbW Wpmgmx2DfYjPV2cuuv9ovcL1TXjZKyoqkKox4fq5W5CkTc3oUcOlaggSakH/xw1s RdPz8KLkqZbChq/gXwn5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeiuddgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrd guvghvqeenucggtffrrghtthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeu fedtvddtveefhfdvveegudejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthht ohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghlihiisehgnhhurdhorh hgpdhrtghpthhtohepjeeftdeggeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphht thhopehssggruhhghhesjhgrnhgvshhtrhgvvghtrdgtohhm X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 6 Sep 2024 16:05:07 -0400 (EDT) Message-ID: <4a8a49d3-de09-4c0e-98cf-db18ce9a481b@gutov.dev> Date: Fri, 6 Sep 2024 23:05:06 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#73044: [PATCH] Add project-find-file-in-root To: Eli Zaretskii References: <864j6s1xtc.fsf@gnu.org> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <864j6s1xtc.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73044 Cc: sbaugh@janestreet.com, 73044@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 06/09/2024 20:44, Eli Zaretskii wrote: >> Resent-To:bug-gnu-emacs@gnu.org >> Date: Fri, 6 Sep 2024 19:20:16 +0300 >> From: Dmitry Gutov >> >>> This command is equivalent to C-x p o C-x C-f, but it's nice to >>> be able to bind it to a specific key. >>> >>> Overall, this is easy enough to provide, so let's just do that. >> Makes sense, thanks, pushed to master (adding the 'interactive' form and >> a NEWS entry). > Thanks, but why only NEWS? I think this should be in the user manual > as well. I don't know, to me it seems like a niche enough feature, having lived without this addition for a number of major releases. Spencer seems to agree, having submitted the patch without a default binding. But if someone wants to describe it in the manual, I of course wouldn't mind. They can mention the situations described in this report. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 07 02:13:01 2024 Received: (at 73044) by debbugs.gnu.org; 7 Sep 2024 06:13:01 +0000 Received: from localhost ([127.0.0.1]:54569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smogu-0005CY-Uq for submit@debbugs.gnu.org; Sat, 07 Sep 2024 02:13:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smogs-0005CF-Fp for 73044@debbugs.gnu.org; Sat, 07 Sep 2024 02:12:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smoeg-0005KW-BL; Sat, 07 Sep 2024 02:10:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NB3tRgqTmyggbNAexA0BTW2t4V4kIzbRvidij/UABEs=; b=B1rrvLx2U2Xp C3eBRMXY3wSBE/BspXTeTZQkDPR6DQvu78FDcGNiUJlgVe+WHdkf6Hzpw/Cl09LoeS4xiMtFpL7FI EPvB3SuIe95AmIuoYCsVw7QdK/hZdkcnXxFCew1wZbZCFjDvlF4+5hnJBuZjy2B7Fx7pPTCY9iIWu 9QU1tFXSx3S0EFFcyvSf3AJrQ1YthrAp5kUp+zKwDxTaXaBEglc3SSKpktV+fP2pful+Sc6wK+tKl MCmbnE+2Szes87oQ34EWQiaLWyCRwb4e0WLMk4iJXGdOCKIYUEJJn5iWf9nDw/Rd06yZvwYZeC/bw aX8imROB8qJed5+hE0ET0g==; Date: Sat, 07 Sep 2024 09:10:36 +0300 Message-Id: <86y144yowz.fsf@gnu.org> From: Eli Zaretskii To: Dmitry Gutov In-Reply-To: <4a8a49d3-de09-4c0e-98cf-db18ce9a481b@gutov.dev> (message from Dmitry Gutov on Fri, 6 Sep 2024 23:05:06 +0300) Subject: Re: bug#73044: [PATCH] Add project-find-file-in-root References: <864j6s1xtc.fsf@gnu.org> <4a8a49d3-de09-4c0e-98cf-db18ce9a481b@gutov.dev> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73044 Cc: sbaugh@janestreet.com, 73044@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 6 Sep 2024 23:05:06 +0300 > Cc: 73044@debbugs.gnu.org, sbaugh@janestreet.com > From: Dmitry Gutov > > On 06/09/2024 20:44, Eli Zaretskii wrote: > >> Resent-To:bug-gnu-emacs@gnu.org > >> Date: Fri, 6 Sep 2024 19:20:16 +0300 > >> From: Dmitry Gutov > >> > >>> This command is equivalent to C-x p o C-x C-f, but it's nice to > >>> be able to bind it to a specific key. > >>> > >>> Overall, this is easy enough to provide, so let's just do that. > >> Makes sense, thanks, pushed to master (adding the 'interactive' form and > >> a NEWS entry). > > Thanks, but why only NEWS? I think this should be in the user manual > > as well. > > I don't know, to me it seems like a niche enough feature, having lived > without this addition for a number of major releases. > > Spencer seems to agree, having submitted the patch without a default > binding. > > But if someone wants to describe it in the manual, I of course wouldn't > mind. They can mention the situations described in this report. If you consider this not important enough to be in the manual, please mark the NEWS entry with "---", to convey your opinion. From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 07 22:14:42 2024 Received: (at 73044) by debbugs.gnu.org; 8 Sep 2024 02:14:42 +0000 Received: from localhost ([127.0.0.1]:57814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sn7Rq-0003H2-CL for submit@debbugs.gnu.org; Sat, 07 Sep 2024 22:14:42 -0400 Received: from fout1-smtp.messagingengine.com ([103.168.172.144]:45431) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sn7Ro-0003Gl-9J for 73044@debbugs.gnu.org; Sat, 07 Sep 2024 22:14:40 -0400 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 873231380276; Sat, 7 Sep 2024 22:14:33 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-09.internal (MEProxy); Sat, 07 Sep 2024 22:14:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1725761673; x=1725848073; bh=XVUspF+1IGqGIRSLIdMA6OknnTmYiw41PfK7F2AKAuc=; b= TGmpaIyYj3e6i5k5hV/5xQBXcA15JbGa4i7+odjncniEUwote8LIcSy+WheDcupm mW7kcDn+cKMQceM/ejE7t5iHJkdc9TaDcDBQQ9W34UMdGqYqRs4EpRKrgMT7KtpO dLetB9ZQkwF1ply9Ewj8YiJ8Xj4jKE/LWR3h2FMwTIbAMIiToOOlnNxjoLkhpT70 +Epq8A0HNKh6vW5sKaJobwEXaf5bLHQ9UrWQ1ymX07Ms9RORgk9J/IV9tg/v8bmA yweKd7G6tjtvU7pQcX51NrTtdZapluQ5tYi/8FOwLRs4SzK3JPMQsgSc2eNfNPyJ TR6Crz+PdyNg9jaI6/KVaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1725761673; x= 1725848073; bh=XVUspF+1IGqGIRSLIdMA6OknnTmYiw41PfK7F2AKAuc=; b=M p46t4nHILcg4C2lRXLmPHMMnDqdSSfI8Zq/UgjhIHCdL/jVxQhPurn1q5jIwbupZ 7exQW1BcrGtq+G6pt23Hv60Px13E9WyVzvLznKMz8Y+lvrl7HuZGH2rOlKUYz7fa p/vMlez7L4sJQKZXP7OI73q5FVtuYjN+c9HsmdFTR7EEk15PybgPQAjsbxlF1mB2 w9vd8WRKkEscX7bs4F89BCqnlSADE4+OjsPs3aTKh+eHFdNFZ758loJejKKVUikF tS/bm6UAI7aBDOVtjKTAaHDgikXb7NZISpyBia0W7sw1W3wE8gKPyTiKQsDgNCOG MO92CJ7LCrMsomiDOyj/A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudeigedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieekueef tddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho peefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh dprhgtphhtthhopeejfedtgeegseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthht ohepshgsrghughhhsehjrghnvghsthhrvggvthdrtghomh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 7 Sep 2024 22:14:32 -0400 (EDT) Message-ID: <3818640d-8868-4c50-a378-e5250532d057@gutov.dev> Date: Sun, 8 Sep 2024 05:14:30 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#73044: [PATCH] Add project-find-file-in-root To: Eli Zaretskii References: <864j6s1xtc.fsf@gnu.org> <4a8a49d3-de09-4c0e-98cf-db18ce9a481b@gutov.dev> <86y144yowz.fsf@gnu.org> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <86y144yowz.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73044 Cc: sbaugh@janestreet.com, 73044@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 07/09/2024 09:10, Eli Zaretskii wrote: > If you consider this not important enough to be in the manual, please > mark the NEWS entry with "---", to convey your opinion. Added, thanks. Also split the entry into two lines. From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 15 14:15:02 2024 Received: (at 73044) by debbugs.gnu.org; 15 Sep 2024 18:15:02 +0000 Received: from localhost ([127.0.0.1]:50495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sptm2-0003vm-1x for submit@debbugs.gnu.org; Sun, 15 Sep 2024 14:15:02 -0400 Received: from sendmail.purelymail.com ([34.202.193.197]:54594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sptm0-0003vC-1m for 73044@debbugs.gnu.org; Sun, 15 Sep 2024 14:15:01 -0400 DKIM-Signature: a=rsa-sha256; b=PyypYqhX6HMH2QzAo8X4u+46OLHsZMODZ/7vYLq2G4quFIfDRaYYowKqiwbk0uJ9G4ecq+r9anPOWXpkyUZ3Kxg+xHevuRt/Km51vlTh8pIDh4fwxD3vZePDftAg/xnea7wj3rjETKUcU39V+/M5EPYc+EB3rlYoAlfbx/nSUfTGg6znHLVVNTltZPoy/7K4fWHiE3Se5F1T10Tix/NnyQK3JyCJmNPayWLzgWj0sEbq9xVg3FTT2AXt9ST2FYmwTrpLnNCEY5kjiy7oSh90SOfj1SbEI/Slc+G+ymkEdTNdpvewiS5TuoKAe2Rw7R11E8qmzc2wfgXpOHrS5NCwHQ==; s=purelymail2; d=spwhitton.name; v=1; bh=xlCgJbvDd9bQ4Dt+/4kOhOehactFcekzzqmuQjTLPVQ=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=nYwMDPsE3K8oBeUffc2QZm0+glnLja+FtQzqUnVjEgW1HO505x+3pSQrGUXyZOhk3uMQ+gnVbSWZ0DFyVew78X4GF5adifxu5b6Ib6resLwA8XR4KF6mLscmKI+AKFVacgLm3/1kJ7YJn8OsMWemAl8A1ez+NK056ZiY+RkzD08yLVsxlkssabjF5RdjJz8z5RtW1XuNNEKbF4HhP4ha/SeBJ+6NwjrAzfRxkANdG2L0pcy83fT1vb4OSY8iSljO1g17sJd+lBCdJr4/1q6t9Ev7hnYFojnjAz257Pms6obiDzjogT+UuJpnGsyYxE5dTBdfapl1WGRB5ChNtq/8pQ==; s=purelymail2; d=purelymail.com; v=1; bh=xlCgJbvDd9bQ4Dt+/4kOhOehactFcekzzqmuQjTLPVQ=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 73044@debbugs.gnu.org Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1991289172; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 15 Sep 2024 18:14:41 +0000 (UTC) Received: by zephyr.silentflame.com (Postfix, from userid 1000) id 09161942A6F; Sun, 15 Sep 2024 19:14:40 +0100 (BST) From: Sean Whitton To: 73044@debbugs.gnu.org, dmitry@gutov.dev, sbaugh@janestreet.com Subject: Re: bug#73044: [PATCH] Add project-find-file-in-root In-Reply-To: (Dmitry Gutov's message of "Fri, 6 Sep 2024 19:20:16 +0300") References: Date: Sun, 15 Sep 2024 19:14:40 +0100 Message-ID: <87ed5k4wdr.fsf@zephyr.silentflame.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 73044 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, On Fri 06 Sep 2024 at 07:20pm +03, Dmitry Gutov wrote: > The name is a little verbose - if anybody has a better idea later, they're > welcome to suggest it, there is some time to do a change. How about project-root-find-file ? -- Sean Whitton From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 16 19:13:25 2024 Received: (at 73044) by debbugs.gnu.org; 16 Sep 2024 23:13:25 +0000 Received: from localhost ([127.0.0.1]:53600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqKuK-00078D-Te for submit@debbugs.gnu.org; Mon, 16 Sep 2024 19:13:25 -0400 Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]:32911) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqKuE-00077s-KE for 73044@debbugs.gnu.org; Mon, 16 Sep 2024 19:13:22 -0400 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.phl.internal (Postfix) with ESMTP id CE93B1140097; Mon, 16 Sep 2024 19:12:57 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 16 Sep 2024 19:12:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1726528377; x=1726614777; bh=1/fvQzTBNan+29bSMigU24E7dtyC7NZ2k0b7B6y0uVk=; b= ViqMBUSFsB7aaaGBJkgmGgQOqgfpRneuYVB7N8CEuTegSODIYgdKy5dyKwGc6ica +BsMYwSVLmpTEMgZJmClXRUxFvvUmryxmQTv01xBFXWLA99Zls8EKEYJ5ZfsDPeO mt5qQ3pWQXxl1Lhugxb9JjMuOuCHWyzr0SsgrQEJzw/3kUbuN6mjwfnnYHyy+431 3Nj9FWvtWJare/MVl+h2gz5K/MAGGpvotA/k3rB5/wo5IVvapzTdmoHjIZnyM7DI ZbTSJ+FzMd9sfcMoe1pMOx3jhNpWO0kddqYCntud6ZRfuoiX6U5jZ7sx49YKwinD oFeJOWUidxeHNFaFpVGhWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1726528377; x= 1726614777; bh=1/fvQzTBNan+29bSMigU24E7dtyC7NZ2k0b7B6y0uVk=; b=b RiUQ4K0LoEOMtr07g1vK9+sR4cHqf1tnVmPodeE8qbfrMLEEfS6hOcec0sfLGzOP U5DBGMulVDlle22hbptlkEep7YBqk+qET7Jck7Duy/Wy6JoG8fVAQNUJOwi+a+7O CVXPJzwMLFUXbfhYU7gVtgoB0sbz2aTeOJsxKHdxIb6mvutyNY5I+FyS5mRUV6b2 ZGUkPSImoJ1VkvVFIkq66h5d/Hyy9LKO+1Pom0X91AdbOe7kWL68HHlIx9VDjIMV 5My/RskRco5OOLtl/toNIcI38jopGRFjp7zQ7a0JgvFla5omlaQfga3pAOHvv+cV r7snUGgAzrfhKJG62QiaQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudekiedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpedthfeuvddtveelgeeuleevvdejveehffevveehvdeu ffdtfefhvdeugefgtefgtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohep fedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepshhpfihhihhtthhonhesshhpfi hhihhtthhonhdrnhgrmhgvpdhrtghpthhtohepjeeftdeggeesuggvsggsuhhgshdrghhn uhdrohhrghdprhgtphhtthhopehssggruhhghhesjhgrnhgvshhtrhgvvghtrdgtohhm X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Sep 2024 19:12:56 -0400 (EDT) Message-ID: <83aee815-f796-4b72-af7a-0f49b935996b@gutov.dev> Date: Tue, 17 Sep 2024 02:12:54 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#73044: [PATCH] Add project-find-file-in-root To: Sean Whitton , 73044@debbugs.gnu.org, sbaugh@janestreet.com References: <87ed5k4wdr.fsf@zephyr.silentflame.com> Content-Language: en-US From: Dmitry Gutov In-Reply-To: <87ed5k4wdr.fsf@zephyr.silentflame.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 73044 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 15/09/2024 21:14, Sean Whitton wrote: > Hello, > > On Fri 06 Sep 2024 at 07:20pm +03, Dmitry Gutov wrote: > >> The name is a little verbose - if anybody has a better idea later, they're >> welcome to suggest it, there is some time to do a change. > > How about project-root-find-file ? Nice! Renamed, thanks. It does seem to create the necessary distinction. From unknown Fri Jun 20 07:24:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 15 Oct 2024 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator