From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58364: [PATCH] Add new function 'file-name-parent-p' Date: Sat, 08 Oct 2022 11:01:56 +0300 Message-ID: <83fsfylp57.fsf@gnu.org> References: <87h70f758g.fsf@posteo.net> <831qrin8jc.fsf@gnu.org> <87sfjy93xe.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9733"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58364@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 08 10:03:20 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 1oh4no-0002KT-6b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 10:03:20 +0200 Original-Received: from localhost ([::1]:39470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh4nm-0000Lf-LJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 04:03:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57684) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh4nX-0000JL-08 for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 04:03:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oh4nW-0007Kz-Gi for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 04:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oh4nW-0000Kg-6S for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 04:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Oct 2022 08:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 58364-submit@debbugs.gnu.org id=B58364.16652161221164 (code B ref 58364); Sat, 08 Oct 2022 08:03:02 +0000 Original-Received: (at 58364) by debbugs.gnu.org; 8 Oct 2022 08:02:02 +0000 Original-Received: from localhost ([127.0.0.1]:38160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oh4mX-0000Ie-F9 for submit@debbugs.gnu.org; Sat, 08 Oct 2022 04:02:01 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oh4mV-0000IJ-ME for 58364@debbugs.gnu.org; Sat, 08 Oct 2022 04:02:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh4mQ-0007Bp-Eq; Sat, 08 Oct 2022 04:01:54 -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=OjnKVllqxQmPmhsIGgObOnzOf3NFmzBHE07J/27Y8t0=; b=JAwRODOE9fad dUNr9vHlAUJERxkgIZ6FOfFMUU0PPZN9jdwVV9CRyXCPP/bVZteHXCNElOwL/Qx/14GOoLIGlpPr4 HUsI5VM1+Sm5Wxpq+dlZHX8PHAqXCujkWWTdQnb3SH6FF9DiII9ryTMTCZnXfJiIDt3N5VX9mjsSo D3s2MlPB1LfyP4oPR9v17o0ZQLzU+V539Yt0IjixwEUEVQPPv5Y62KTzENF1fY8w9qXa6vHPgqWu9 RyXKaWa+RPhlLsa588nvuWoYzmOLxxYkUZfpEVSlilqBlgOl4mDm/DSDt/xXINYioRFv15uVGnUJ6 XiLyEXk5ZY2QjIxXhdinzA==; Original-Received: from [87.69.77.57] (port=2135 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh4mP-0006QZ-Ow; Sat, 08 Oct 2022 04:01:54 -0400 In-Reply-To: <87sfjy93xe.fsf@posteo.net> (message from Philip Kaludercic on Sat, 08 Oct 2022 07:21:01 +0000) 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" Xref: news.gmane.io gmane.emacs.bugs:244872 Archived-At: > From: Philip Kaludercic > Cc: 58364-done@debbugs.gnu.org > Date: Sat, 08 Oct 2022 07:21:01 +0000 > > Eli Zaretskii writes: > > >> From: Philip Kaludercic > >> Date: Fri, 07 Oct 2022 20:23:27 +0000 > >> > >> Unless I am mistaken, there is no direct function to quickly test if a > >> directory is a super-directory of file. As I have encountered this > >> issue more than once the last few days of hacking, I would like to > >> propose the below function. > > > > We have file-in-directory-p. Doesn't that fit the bill? > > I hive tried it out and yes that was the function I was looking for. My > apologies for the noise. No need to apologize: no one can know and remember everything. I only remembered that because I recently fixed a bug in Dired which used that function. But perhaps our take from this is that file-in-directory-p is not discoverable enough? Can you describe how and where you looked for this functionality? Maybe if we know that, we could make some changes to have this function pop up in similar searches.