From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#58364: [PATCH] Add new function 'file-name-parent-p' Date: Sat, 08 Oct 2022 07:21:01 +0000 Message-ID: <87sfjy93xe.fsf@posteo.net> References: <87h70f758g.fsf@posteo.net> <831qrin8jc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26043"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58364-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 08 09:23: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 1oh4B5-0006dx-UW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 09:23:20 +0200 Original-Received: from localhost ([::1]:37418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oh4B4-0000JC-L4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Oct 2022 03:23:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oh49r-0007nD-46 for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 03:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oh49q-0002M3-SC for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 03:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oh49q-0007Tn-BJ for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2022 03:22:02 -0400 Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Oct 2022 07:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Mail-Followup-To: 58364@debbugs.gnu.org, philipk@posteo.net, philipk@posteo.net Original-Received: via spool by 58364-done@debbugs.gnu.org id=D58364.166521367328687 (code D ref 58364); Sat, 08 Oct 2022 07:22:02 +0000 Original-Received: (at 58364-done) by debbugs.gnu.org; 8 Oct 2022 07:21:13 +0000 Original-Received: from localhost ([127.0.0.1]:38113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oh492-0007Sa-QI for submit@debbugs.gnu.org; Sat, 08 Oct 2022 03:21:13 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:58927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oh48z-0007SN-LW for 58364-done@debbugs.gnu.org; Sat, 08 Oct 2022 03:21:10 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 62B2D240028 for <58364-done@debbugs.gnu.org>; Sat, 8 Oct 2022 09:21:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665213663; bh=nVUHlQgw3h7HyRy1qLWSB9MOz+ju2/YY3Ct5lmkoiVY=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=Wr8LuF8JLGa1byqzqDXTXmeZrbWXwOStLONccUExv5aQBDljalcxl4DgFBt7GtYwF NPjMq1IJ1xgw5cHWczg0PcwavJW02uXMt7A6Htvqp0/j9qxoFnMoTFcdKgvZSoUckq nAzhKK3o04VPNG1Bj0nA5vL3JqRskQUNHlj/7gHiWXBB+jX0uEX6hJF4FcmwHP5EqJ ig5Wnv16SZmp7NzcFFMh8BEpCP+dYpocZhP2jPiOqc4lseSlrkuqtYtPzSGPENuBAi LNr1ztQ0rE1O7gHtBB9EubLSPCWpneZ68vY5TYyXyXGUc9ThyHiw9SYKGyJKpHZhTz mVQMXeaFjcNNQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MkxRf42J7z6tmN; Sat, 8 Oct 2022 09:21:02 +0200 (CEST) In-Reply-To: <831qrin8jc.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 08 Oct 2022 09:17:43 +0300") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB 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:244868 Archived-At: 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.