Subject: bug#56355: 29.0.50; Implement file-parent-directory

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 02 Jul 2022 14:11:48 +0200

Eli Zaretskii <[email-masked]> writes:

> Thanks, but it looks as a very thin wrapper around
> file-name-directory, so I wonder whether we really need a separate
> function fir this.

I think it looks like a handy utility function -- we have quite a few
instances of

  (file-name-directory (directory-file-name filename))

(possibly with an expand-file-name in there, too) and using
`file-parent-directory' would both express the intention of the code
better, and be less error prone (because many people forget the
`directory-file-name' in the first attempt).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no