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 09:17:43 +0300 Message-ID: <831qrin8jc.fsf@gnu.org> References: <87h70f758g.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7712"; 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 08:18:10 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 1oh3A2-0001qm-5b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 08:18:10 +0200 Original-Received: from localhost ([::1]:36778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh3A1-00071a-Ao for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 02:18:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh39u-00070j-Qb for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 02:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oh39u-0002bL-II for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 02:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oh39u-0005wQ-6C for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 02:18: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 06:18: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.166520987022820 (code B ref 58364); Sat, 08 Oct 2022 06:18:02 +0000 Original-Received: (at 58364) by debbugs.gnu.org; 8 Oct 2022 06:17:50 +0000 Original-Received: from localhost ([127.0.0.1]:38050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oh39i-0005vz-HU for submit@debbugs.gnu.org; Sat, 08 Oct 2022 02:17:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oh39g-0005vm-R0 for 58364@debbugs.gnu.org; Sat, 08 Oct 2022 02:17:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47612) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh39b-0002ZW-5u; Sat, 08 Oct 2022 02:17:43 -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=xPWJ/A3EVO8G2emVPeJ9HSXuIXUtBNl5UKhtBKQ4Br0=; b=cIYG9rSOZBi1 es7XXiCCxpFA28LbMQRe0sBR4IaFRACtFyWdjSaKr+Me5iJHhUo+bqo0s8fbo7RAmr04WW7o+J7JA r6Z1DSy2WEDmxTVGZmK9P3w1W787zNibaoR5Qn4vJsiS9x0SuD5Ed5g5dNHSqXq30X17zbhuMjMDd QSQfA1If8fyZkTNXCHi0JqEXfT0iksL5QhMWVkX7hKtTJgCCVVCqoYWfH15Xvv3Nosqe7HFzm4Qv+ RKoCLKoAWaLRSy6++fS+9ZT0co9TzszkwAezy2DFOvT6Gtbj21HbxiMbWCLgnGBf5EQKd6UNl+H4k nndylWu4Mh2NTOBMpdHufw==; Original-Received: from [87.69.77.57] (port=3393 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 1oh39a-00044B-FW; Sat, 08 Oct 2022 02:17:42 -0400 In-Reply-To: <87h70f758g.fsf@posteo.net> (message from Philip Kaludercic on Fri, 07 Oct 2022 20:23:27 +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:244864 Archived-At: > 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?