all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: daanturo <daanturo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 56355@debbugs.gnu.org
Subject: bug#56355: 29.0.50; Implement file-parent-directory
Date: Sat, 2 Jul 2022 19:02:42 +0700	[thread overview]
Message-ID: <c8ca589a-e0e2-6392-148c-2b86eb02b939@gmail.com> (raw)
In-Reply-To: <83wncvbuht.fsf@gnu.org>

On 7/2/22 18:54, Eli Zaretskii wrote:
> 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.

file-name-directory doesn't work when the input has a trailing "/", such as "/home/" when we expect "/" as the return value.

Also this one handles "~" => "/home/".

-- 
Daanturo.






  reply	other threads:[~2022-07-02 12:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-02 11:06 bug#56355: 29.0.50; Implement file-parent-directory daanturo
2022-07-02 11:54 ` Eli Zaretskii
2022-07-02 12:02   ` daanturo [this message]
2022-07-02 12:11   ` Lars Ingebrigtsen
2022-07-02 15:29     ` Drew Adams
2022-07-02 18:24       ` daanturo
2022-07-04 11:08         ` Lars Ingebrigtsen
2022-08-31 10:26 ` daanturo
2022-09-01 10:08   ` Lars Ingebrigtsen
2022-09-01  4:11 ` daanturo
2022-09-04 14:38   ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c8ca589a-e0e2-6392-148c-2b86eb02b939@gmail.com \
    --to=daanturo@gmail.com \
    --cc=56355@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.