unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: sds@gnu.org, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files)
Date: Wed, 03 Aug 2011 05:05:34 -0400	[thread overview]
Message-ID: <E1QoXOQ-0002hu-Dh@fencepost.gnu.org> (raw)
In-Reply-To: <jwv4o1zd13g.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Tue, 02 Aug 2011 16:24:38 -0400)

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: sds@gnu.org,  emacs-devel@gnu.org
> Date: Tue, 02 Aug 2011 16:24:38 -0400
> 
> Still, the problem is that the intended meaning of
> convert-standard-filename is unclear (what should it do on relative
> file names?)

For relative file names, it should produce a relative file name whose
name is valid on the underlying filesystem.

This may mean converting more than a single component of the original
name, e.g., if it includes leading directories, as in
"~/.emacs.d/.emacs.something".

With that definition, the same applies to absolute file names, of
course.

> and that the functionality require by the OP is not quite
> the one provided by convert-standard-filename, AFAIK

The addition of converting Cygwin file names to native w32 file names
is an add-on functionality.  Originally, convert-standard-filename was
not supposed to handle these issues at all.  The function was actually
created for the DOS port, at RMS's advice (when he saw that I was
committing changes to defcustom's that used a different file name
conditioned by system-type).  The rest is history...

> My understanding is:
> - convert-standard-filename is to convert a predefined name, which may
>   be mentioned in docs, using mostly Unix conventions so that it works
>   on whichever OS we're using.  E.g. it may do things like map ".emacs"
>   to "_emacs".

Correct.

> - the function Sam needs is one that converts from "file name using
>   conventions used in the system in which Emacs is running" to "file
>   name referring to the same file but such that Emacs can access it".
>   Doing things like "However, on Windows and DOS, replace invalid
>   characters" is not the right thing to do.

Agreed.

> BTW the function he wants is also the function that should be applied to
> files names received in command-line-args and as args to emacsclient
> (as was recently requested by some other poster).

Indeed.



  reply	other threads:[~2011-08-03  9:05 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1QjaPL-0003HL-TM@colonialone.fsf.org>
2011-08-02  3:39 ` [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files) Stefan Monnier
2011-08-02  4:34   ` Sam Steingold
2011-08-02  4:51   ` Eli Zaretskii
2011-08-02 18:57     ` Stefan Monnier
2011-08-02 19:12       ` Eli Zaretskii
2011-08-02 20:24         ` Stefan Monnier
2011-08-03  9:05           ` Eli Zaretskii [this message]
2011-08-05 17:18             ` convert-standard-filename (was: [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files)) Stefan Monnier
2011-08-06  7:20               ` Eli Zaretskii
2011-08-07 15:33                 ` convert-standard-filename Stefan Monnier
2011-08-07 15:43                   ` convert-standard-filename Lennart Borgman
2011-08-07 19:43                     ` convert-standard-filename Stefan Monnier
2011-08-07 22:05                       ` convert-standard-filename Lennart Borgman
2011-08-08  2:54                         ` convert-standard-filename Eli Zaretskii
2011-08-08  3:23                           ` convert-standard-filename Lennart Borgman
2011-08-08  4:19                             ` convert-standard-filename Eli Zaretskii
2011-08-08  4:26                               ` convert-standard-filename Lennart Borgman
2011-08-08  4:38                                 ` convert-standard-filename Eli Zaretskii
2011-08-08 10:37                                   ` convert-standard-filename Lennart Borgman
2011-08-08 11:31                                     ` convert-standard-filename Eli Zaretskii
2011-08-08 17:15                                       ` convert-standard-filename Lennart Borgman
2011-08-07 16:18                   ` convert-standard-filename Eli Zaretskii
2011-08-07 16:22                     ` convert-standard-filename Lennart Borgman
2011-08-07 20:19                     ` convert-standard-filename Stefan Monnier
2011-08-07 20:35                       ` convert-standard-filename Eli Zaretskii
2011-08-07 21:20                         ` convert-standard-filename Sam Steingold
2011-08-08  2:53                           ` convert-standard-filename Eli Zaretskii
2011-08-08  3:24                           ` convert-standard-filename Stefan Monnier
2011-08-08  4:14                             ` convert-standard-filename Eli Zaretskii
2011-08-08 18:20                               ` convert-standard-filename Stefan Monnier
2011-08-08 19:14                                 ` convert-standard-filename Eli Zaretskii
2011-08-08 21:24                                   ` convert-standard-filename Stefan Monnier
2011-08-09  5:19                                     ` convert-standard-filename Eli Zaretskii
2011-08-09 18:33                                       ` convert-standard-filename Stefan Monnier
2011-08-09 18:36                                       ` convert-standard-filename Stefan Monnier
2011-08-08  7:33                       ` convert-standard-filename Michael Albinus
2011-08-02  8:11   ` [Emacs-diffs] /srv/bzr/emacs/trunk r105295: * lisp/progmodes/etags.el (etags-file-of-tag, etags-tags-table-files) Francesco Potortì
2011-08-02 15:33     ` Sam Steingold
2011-08-02 18:55       ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1QoXOQ-0002hu-Dh@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=sds@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).