all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Eli Zaretskii'" <eliz@gnu.org>
Cc: 7617@debbugs.gnu.org
Subject: bug#7617: 24.0.50; `expand-file-name': removal of slashes
Date: Mon, 13 Dec 2010 06:51:42 -0800	[thread overview]
Message-ID: <0C4C99D992E6435E9931DA26D1DD476E@us.oracle.com> (raw)
In-Reply-To: <E1PS0sN-0007El-F3@fencepost.gnu.org>

> perhaps you run the string through expand-file-name too early,
> before massaging it in some way that gives a valid file name.

I do not want to change the strings into valid file names.
That should be clear by now.

> Or maybe that you should run expand-file-name only on parts
> of the file name, the parts that _are_ valid file names.

That's one possibility, I suppose.  But I'm not really eager to analyze string
inputs to try to discover pieces that might be valid file names for various
operating systems.

And it's not clear what that would mean in terms of the expansion I'm after
(which is exactly the expansion of `expand*' minus the slash collapsing).

But I recognize what you suggest as a possibility.  Likewise, removing any
ignorable prefix temporarily, expanding, and reapplying the prefix.

Such approaches seem messier than what I'm doing now, which at least leverages
`expand*' (for its OS knowledge and expansion function), and then undoes the
slash collapsing.

> Call expand-file-name on parts of a file name, then `concat' them
> together (with any number of slashes that you want)?

See above.  I appreciate your trying to help, however.






  reply	other threads:[~2010-12-13 14:51 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-11 21:53 bug#7617: 24.0.50; `expand-file-name': removal of slashes Drew Adams
2010-12-12 15:58 ` Eli Zaretskii
2010-12-12 18:03   ` Drew Adams
2010-12-12 19:33     ` Eli Zaretskii
2010-12-12 20:21       ` Drew Adams
2010-12-12 20:32         ` Eli Zaretskii
2010-12-12 20:36           ` Drew Adams
2010-12-12 20:42         ` Andreas Schwab
2010-12-13  3:53         ` Stefan Monnier
2010-12-13  4:32           ` Drew Adams
2010-12-13  5:23             ` Eli Zaretskii
2010-12-13 14:51               ` Drew Adams [this message]
2010-12-13 15:17                 ` Eli Zaretskii
2010-12-13 15:47                   ` Drew Adams
2010-12-13 16:17                     ` Eli Zaretskii
2010-12-13 20:40                     ` Stefan Monnier
2010-12-12 22:35       ` Drew Adams
2010-12-12 23:40         ` Andreas Schwab
2010-12-13  5:17         ` Eli Zaretskii
2010-12-13 14:51           ` Drew Adams
2010-12-12 20:15     ` Andreas Schwab
2010-12-12 20:25       ` Drew Adams
2010-12-12 20:36         ` Andreas Schwab
2010-12-12 20:42           ` Drew Adams
2010-12-12 21:00             ` Andreas Schwab
2010-12-13  0:49     ` Jason Rumney
2010-12-12 20:39   ` Eli Zaretskii
2010-12-12 21:04 ` Andreas Schwab

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=0C4C99D992E6435E9931DA26D1DD476E@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=7617@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.