all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Nicolas Richard <youngfrog@members.fsf.org>
Cc: 27982@debbugs.gnu.org
Subject: bug#27982: 25.1.50; expand-file-name docstring on how to traverse the filesystem
Date: Wed, 23 Aug 2017 20:50:29 +0300	[thread overview]
Message-ID: <83378i9nrv.fsf@gnu.org> (raw)
In-Reply-To: <86bmn6o4tr.fsf@members.fsf.org> (message from Nicolas Richard on Wed, 23 Aug 2017 14:18:24 +0200)

> From: Nicolas Richard <youngfrog@members.fsf.org>
> Cc: 27982@debbugs.gnu.org
> Date: Wed, 23 Aug 2017 14:18:24 +0200
> 
> (let ((dirname current-directory))
>    (format "%s versus %s"
>       (directory-file-name (file-name-directory dirname))
>       (expand-file-name ".." dirname)))
> => "/home/youngfrog versus /home"
> => Effect is clearly different.

Crystal ball says that current-directory (which you probably meant to
be default-directory instead) ends in a slash, in which case remove
it, and the 2 results will match.





  reply	other threads:[~2017-08-23 17:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-06 11:38 bug#27982: 25.1.50; expand-file-name docstring on how to traverse the filesystem Nicolas Richard
2017-08-06 16:53 ` Eli Zaretskii
2017-08-23 12:18   ` Nicolas Richard
2017-08-23 17:50     ` Eli Zaretskii [this message]
2017-08-23 19:18       ` Nicolas Richard
2017-08-24 17:08         ` Eli Zaretskii
2017-08-30 15:43           ` Nicolas Richard
2017-09-02  9:59             ` Eli Zaretskii

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=83378i9nrv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=27982@debbugs.gnu.org \
    --cc=youngfrog@members.fsf.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.