From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#66668: [PATCH] Teach ffap to look for paths under the root of project Date: Sun, 29 Oct 2023 14:43:32 +0200 Message-ID: <271bf6ef-4470-69f7-0892-ee7c95d56fe2@gutov.dev> References: <838r7vre1a.fsf@gnu.org> <83edhdborx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6968"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 66668@debbugs.gnu.org To: Eli Zaretskii , Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 29 13:44:55 2023 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 1qx59x-0001Zy-7G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Oct 2023 13:44:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qx59c-0001P2-Qm; Sun, 29 Oct 2023 08:44:32 -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 1qx59b-0001Oi-AV for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2023 08:44:31 -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 1qx59a-0003QV-F4 for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2023 08:44:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qx5A6-0001S8-Ey for bug-gnu-emacs@gnu.org; Sun, 29 Oct 2023 08:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Oct 2023 12:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66668 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66668-submit@debbugs.gnu.org id=B66668.16985834575506 (code B ref 66668); Sun, 29 Oct 2023 12:45:02 +0000 Original-Received: (at 66668) by debbugs.gnu.org; 29 Oct 2023 12:44:17 +0000 Original-Received: from localhost ([127.0.0.1]:40677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qx59M-0001Qk-Po for submit@debbugs.gnu.org; Sun, 29 Oct 2023 08:44:17 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qx59K-0001QX-Ip for 66668@debbugs.gnu.org; Sun, 29 Oct 2023 08:44:15 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 98F645C00C0; Sun, 29 Oct 2023 08:43:36 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 29 Oct 2023 08:43:36 -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:sender:subject:subject:to:to; s=fm2; t= 1698583416; x=1698669816; bh=uZg/s5q51nu43eknLYxwWDBbPjmtMbXZ4NR sq1bAICg=; b=cgooCJX2BMnoCJxoxa7yvmTpMIW44w9B2lGeJLnTp5EUPpGNYgF YU9N+OLesUQiqqyqhdLpVzmqF9hLM/x2v9i/0XtUwNORzlYhjHHhzJCRm25pmOUZ AOfa4TlFeH3sU07GrDTm0DQa+Z0xjqm1XbF4KAtB9AYtQxjsx0fghrjZRSwCimdK FelGEAg9K402PPX6Ko0Yfa5dLmaotmsCnkXx2eNI69rCvhumx+d5U+blc+6CunR5 Xp5MoeF+auceyObg9DK12eZYS3SZQ7B0jYI1JwmNssHzIUbgc68O35eDYDM3zVgd Pb/iUNe4G5qHftu/jNvPLPSeWNUwBLPN+dQ== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1698583416; x=1698669816; bh=uZg/s5q51nu43eknLYxwWDBbPjmtMbXZ4NR sq1bAICg=; b=WQzb5K7ZHIQRkbYwLvQ/vEk6xemfWZIqcrngbfGQ6pcLcEGGki9 FCk4g/zkEqzVuG4zmZYggHGKdK8RtpeuiFX3DwwW6O8iUb79uDoGeNjVwOGzkB4T DIDmxt+gsGcYfPuVuwYjARyy3gNs1s6nojEmrixSNv4JQ2vOFl1dbjG1aZlCs5yi uLPnU4e2wjUtwSRRNm9IEIlZaOy+gJeazfcBhfRBZnd0yMSsbjrIc20ZDa9Ml6tM nMniZJG4gs8w+8t2i1zPqj42H76W0e0SLNB1P/jPXYQPEmj7PMrkWPixXgSXH0FM DevrtTti2HkEpwdWZR92YII1ah4FJs4e+kQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrleekgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 29 Oct 2023 08:43:35 -0400 (EDT) Content-Language: en-US In-Reply-To: <83edhdborx.fsf@gnu.org> 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:273504 Archived-At: On 29/10/2023 14:23, Eli Zaretskii wrote: >> From: Spencer Baugh >> Cc:dmitry@gutov.dev,66668@debbugs.gnu.org >> Date: Wed, 25 Oct 2023 11:08:12 -0400 >> >> Eli Zaretskii writes: >>>> Cc: Dmitry Gutov >>>> From: Spencer Baugh >>>> Date: Sat, 21 Oct 2023 14:37:45 -0400 >>>> >>>> Subject: [PATCH] Teach ffap to look for paths under the root of project >>> Please don't use "path" when you mean "file name". The GNU Coding >>> Standards frown on such uses of "path". >> Oops, fixed. >> >> (Also fixed a byte-compiler warning from not declaring project-root) > Dmitry, any comments? If the way it works is useful for people (probably will be), I'm good with it. Ideally, it possibly would check whether the file belongs to the project-files fileset, but that's going to be slower, and thus probably not worth the marginal improvement.