unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* document cygwin-convert-path-{from,to}-windows?
@ 2012-11-17  3:39 Glenn Morris
  2012-11-17  8:18 ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Glenn Morris @ 2012-11-17  3:39 UTC (permalink / raw)
  To: emacs-devel


If the functions cygwin-convert-path-from-windows and
cygwin-convert-path-to-windows need documenting in the manuals, please
could someone do that? Maybe they don't, given that "Cygwin" essentially
isn't mentioned anywhere in the manuals. On the other hand, if you feel
that is a disservice, now is a chance to rectify it! :)



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-17  3:39 document cygwin-convert-path-{from,to}-windows? Glenn Morris
@ 2012-11-17  8:18 ` Eli Zaretskii
  2012-11-18 20:35   ` Daniel Colascione
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2012-11-17  8:18 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

> From: Glenn Morris <rgm@gnu.org>
> Date: Fri, 16 Nov 2012 22:39:58 -0500
> 
> If the functions cygwin-convert-path-from-windows and
> cygwin-convert-path-to-windows need documenting in the manuals, please
> could someone do that? Maybe they don't, given that "Cygwin" essentially
> isn't mentioned anywhere in the manuals. On the other hand, if you feel
> that is a disservice, now is a chance to rectify it! :)

I think they do need to be documented: as time passes, they will be
more and more used in the sources.

I do have a gripe wrt their names: GNU coding standards frown upon
using "path" for anything but PATH-style lists of directories.  But my
comments about that at the time evidently weren't enough to convince
the guilty parties.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-17  8:18 ` Eli Zaretskii
@ 2012-11-18 20:35   ` Daniel Colascione
  2012-11-18 21:21     ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Daniel Colascione @ 2012-11-18 20:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 899 bytes --]

On 11/17/12 12:18 AM, Eli Zaretskii wrote:
>> From: Glenn Morris <rgm@gnu.org>
>> Date: Fri, 16 Nov 2012 22:39:58 -0500
>>
>> If the functions cygwin-convert-path-from-windows and
>> cygwin-convert-path-to-windows need documenting in the manuals, please
>> could someone do that? Maybe they don't, given that "Cygwin" essentially
>> isn't mentioned anywhere in the manuals. On the other hand, if you feel
>> that is a disservice, now is a chance to rectify it! :)
> 
> I think they do need to be documented: as time passes, they will be
> more and more used in the sources.
> 
> I do have a gripe wrt their names: GNU coding standards frown upon
> using "path" for anything but PATH-style lists of directories.  But my
> comments about that at the time evidently weren't enough to convince
> the guilty parties.

It's not too late to change the names. What would you suggest?



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 235 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-18 20:35   ` Daniel Colascione
@ 2012-11-18 21:21     ` Eli Zaretskii
  2012-11-18 21:22       ` Daniel Colascione
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2012-11-18 21:21 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: emacs-devel

> Date: Sun, 18 Nov 2012 12:35:46 -0800
> From: Daniel Colascione <dancol@dancol.org>
> CC: Glenn Morris <rgm@gnu.org>, emacs-devel@gnu.org
> 
> > I do have a gripe wrt their names: GNU coding standards frown upon
> > using "path" for anything but PATH-style lists of directories.  But my
> > comments about that at the time evidently weren't enough to convince
> > the guilty parties.
> 
> It's not too late to change the names. What would you suggest?

cygwin-convert-filename-to-windows, and similarly for the other one.
IOW, replace "path" with "filename".

TIA.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-18 21:21     ` Eli Zaretskii
@ 2012-11-18 21:22       ` Daniel Colascione
  2012-11-18 21:36         ` Eli Zaretskii
  2012-11-19  2:37         ` Stefan Monnier
  0 siblings, 2 replies; 15+ messages in thread
From: Daniel Colascione @ 2012-11-18 21:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 685 bytes --]

On 11/18/12 1:21 PM, Eli Zaretskii wrote:
>> Date: Sun, 18 Nov 2012 12:35:46 -0800
>> From: Daniel Colascione <dancol@dancol.org>
>> CC: Glenn Morris <rgm@gnu.org>, emacs-devel@gnu.org
>>
>>> I do have a gripe wrt their names: GNU coding standards frown upon
>>> using "path" for anything but PATH-style lists of directories.  But my
>>> comments about that at the time evidently weren't enough to convince
>>> the guilty parties.
>>
>> It's not too late to change the names. What would you suggest?
> 
> cygwin-convert-filename-to-windows, and similarly for the other one.
> IOW, replace "path" with "filename".
> 

But the functions convert directory names too.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 235 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-18 21:22       ` Daniel Colascione
@ 2012-11-18 21:36         ` Eli Zaretskii
  2012-11-18 21:50           ` Drew Adams
  2012-11-19  2:37         ` Stefan Monnier
  1 sibling, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2012-11-18 21:36 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: emacs-devel

> Date: Sun, 18 Nov 2012 13:22:30 -0800
> From: Daniel Colascione <dancol@dancol.org>
> CC: rgm@gnu.org, emacs-devel@gnu.org
> 
> > cygwin-convert-filename-to-windows, and similarly for the other one.
> > IOW, replace "path" with "filename".
> > 
> 
> But the functions convert directory names too.

"Filename" doesn't contradict that.  We have, e.g.,
directory-file-name, file-name-as-directory, expand-file-name, etc.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: document cygwin-convert-path-{from,to}-windows?
  2012-11-18 21:36         ` Eli Zaretskii
@ 2012-11-18 21:50           ` Drew Adams
  2012-11-19  1:44             ` Daniel Colascione
  0 siblings, 1 reply; 15+ messages in thread
From: Drew Adams @ 2012-11-18 21:50 UTC (permalink / raw)
  To: 'Eli Zaretskii', 'Daniel Colascione'; +Cc: emacs-devel

> > > cygwin-convert-filename-to-windows, and similarly for the 
> > > other one.  IOW, replace "path" with "filename".
> > 
> > But the functions convert directory names too.
> 
> "Filename" doesn't contradict that.  We have, e.g.,
> directory-file-name, file-name-as-directory, expand-file-name, etc.

I agree.  Emacs practice calls for replacing "path" with "filename" or (better)
"file-name" here.

However, I would suggest replacing "windows" with whatever is the accepted term
used in Emacs names these days (win32?).  We do not want to confuse users.  This
is about Microsoft Windows file names; it is not about Emacs windows. 




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-18 21:50           ` Drew Adams
@ 2012-11-19  1:44             ` Daniel Colascione
  2012-11-19  3:36               ` Eli Zaretskii
                                 ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Daniel Colascione @ 2012-11-19  1:44 UTC (permalink / raw)
  To: Drew Adams; +Cc: 'Eli Zaretskii', emacs-devel

[-- Attachment #1: Type: text/plain, Size: 970 bytes --]

On 11/18/12 1:50 PM, Drew Adams wrote:
>>>> cygwin-convert-filename-to-windows, and similarly for the 
>>>> other one.  IOW, replace "path" with "filename".
>>>
>>> But the functions convert directory names too.
>>
>> "Filename" doesn't contradict that.  We have, e.g.,
>> directory-file-name, file-name-as-directory, expand-file-name, etc.
> 
> I agree.  Emacs practice calls for replacing "path" with "filename" or (better)
> "file-name" here.

I've renamed these functions in the trunk. Should I push them to the
emacs-24 branch too? (Is there a way to do that without checking out a
complete copy of that branch?)

> However, I would suggest replacing "windows" with whatever is the accepted term
> used in Emacs names these days (win32?).  We do not want to confuse users.  This
> is about Microsoft Windows file names; it is not about Emacs windows.

"windows" is clear enough in context, and the function names are long
enough as it is.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 235 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-18 21:22       ` Daniel Colascione
  2012-11-18 21:36         ` Eli Zaretskii
@ 2012-11-19  2:37         ` Stefan Monnier
  2012-11-19  2:45           ` Daniel Colascione
  1 sibling, 1 reply; 15+ messages in thread
From: Stefan Monnier @ 2012-11-19  2:37 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Eli Zaretskii, emacs-devel

>>>> I do have a gripe wrt their names: GNU coding standards frown upon
>>>> using "path" for anything but PATH-style lists of directories.  But my
>>>> comments about that at the time evidently weren't enough to convince
>>>> the guilty parties.
>>> It's not too late to change the names. What would you suggest?
>> cygwin-convert-filename-to-windows, and similarly for the other one.
>> IOW, replace "path" with "filename".
> But the functions convert directory names too.

You clearly need to (re-)read the GNU coding standards.


        Stefan



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-19  2:37         ` Stefan Monnier
@ 2012-11-19  2:45           ` Daniel Colascione
  2012-11-19  3:46             ` Stefan Monnier
  0 siblings, 1 reply; 15+ messages in thread
From: Daniel Colascione @ 2012-11-19  2:45 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Eli Zaretskii, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]

On 11/18/2012 6:37 PM, Stefan Monnier wrote:
>>>>> I do have a gripe wrt their names: GNU coding standards frown upon
>>>>> using "path" for anything but PATH-style lists of directories.  But my
>>>>> comments about that at the time evidently weren't enough to convince
>>>>> the guilty parties.
>>>> It's not too late to change the names. What would you suggest?
>>> cygwin-convert-filename-to-windows, and similarly for the other one.
>>> IOW, replace "path" with "filename".
>> But the functions convert directory names too.
> 
> You clearly need to (re-)read the GNU coding standards.

The GNU Coding Standards are silent on the topic except for the following
sentence in section 6.1:

"Please do not use the term “pathname” that is used in Unix documentation; use
“file name” (two words) instead. We use the term “path” only for search paths,
which are lists of directory names."

The document could be clearer on what to call names that can refer to either
files or directories. (FWIW, I find "path" the least confusing option, and I
find names like "directory-file-name" confusing.)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 258 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-19  1:44             ` Daniel Colascione
@ 2012-11-19  3:36               ` Eli Zaretskii
  2012-11-19  4:06               ` Stefan Monnier
  2012-11-20 19:00               ` Glenn Morris
  2 siblings, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2012-11-19  3:36 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: drew.adams, emacs-devel

> Date: Sun, 18 Nov 2012 17:44:30 -0800
> From: Daniel Colascione <dancol@dancol.org>
> Cc: 'Eli Zaretskii' <eliz@gnu.org>, emacs-devel@gnu.org
> 
> I've renamed these functions in the trunk.

Thanks.

> Should I push them to the emacs-24 branch too?

If the functions exist on the branch, yes.

> (Is there a way to do that without checking out a complete copy of
> that branch?)

No.  But if you do the "bzr branch" command in the same shared repo
(i.e., under the same parent directory where you have the trunk), the
initial branch command will be much faster than the one for the trunk,
because meta-date of most revisions is already on your disk, so bzr
will only fetch the few different ones, and then proceed to build the
working tree.

> > However, I would suggest replacing "windows" with whatever is the accepted term
> > used in Emacs names these days (win32?).  We do not want to confuse users.  This
> > is about Microsoft Windows file names; it is not about Emacs windows.
> 
> "windows" is clear enough in context, and the function names are long
> enough as it is.

win32 is also incorrect.  It's actually utf-16, but I doubt that using
that would help users.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-19  2:45           ` Daniel Colascione
@ 2012-11-19  3:46             ` Stefan Monnier
  0 siblings, 0 replies; 15+ messages in thread
From: Stefan Monnier @ 2012-11-19  3:46 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: Eli Zaretskii, emacs-devel

> "Please do not use the term “pathname” that is used in Unix
> documentation; use “file name” (two words) instead. We use the term
> “path” only for search paths, which are lists of directory names."

> The document could be clearer on what to call names that can refer to either
> files or directories.

I don't understand what you find unclear about it.  It says that what
many people call "pathname" should be called "file name".
AFAIK "pathname" is used for both files and directories, so the above
says that "file name" should be used for it.

> (FWIW, I find "path" the least confusing option, and I
> find names like "directory-file-name" confusing.)

"directory-file-name" should be read as "directory -> file-name", so it
takes the a name that refers to a directory and returns the file name of
that directory.  It's not the most clear, I admin, but I'm not sure how
else to call a function that goes from "foo/" to "foo" (or from
"[foo]" to "foo.dir" back in the VMS days).


        Stefan



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-19  1:44             ` Daniel Colascione
  2012-11-19  3:36               ` Eli Zaretskii
@ 2012-11-19  4:06               ` Stefan Monnier
  2012-11-20 19:00               ` Glenn Morris
  2 siblings, 0 replies; 15+ messages in thread
From: Stefan Monnier @ 2012-11-19  4:06 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: 'Eli Zaretskii', Drew Adams, emacs-devel

>> However, I would suggest replacing "windows" with whatever is the
>> accepted term used in Emacs names these days (win32?).  We do not
>> want to confuse users.  This is about Microsoft Windows file names;
>> it is not about Emacs windows.
> "windows" is clear enough in context, and the function names are long
> enough as it is.

I'm fine with "windows".  If we wan to change it, "win32" is not a good
choice since we've been avoiding the use of "win", so it would be "w32"
instead, which is used at many other places in Emacs.


        Stefan



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-19  1:44             ` Daniel Colascione
  2012-11-19  3:36               ` Eli Zaretskii
  2012-11-19  4:06               ` Stefan Monnier
@ 2012-11-20 19:00               ` Glenn Morris
  2012-11-20 19:05                 ` Daniel Colascione
  2 siblings, 1 reply; 15+ messages in thread
From: Glenn Morris @ 2012-11-20 19:00 UTC (permalink / raw)
  To: Daniel Colascione; +Cc: emacs-devel

Daniel Colascione wrote:

> I've renamed these functions in the trunk. Should I push them to the
> emacs-24 branch too?

Since you didn't add compat aliases, and changed the 24.3 NEWS section,
yes (please put the word "backport" somewhere in the commit message).
It would have been better to install it to the emacs-24 branch only, and
let it get merged to trunk "automatically". See admin/notes/bzr.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: document cygwin-convert-path-{from,to}-windows?
  2012-11-20 19:00               ` Glenn Morris
@ 2012-11-20 19:05                 ` Daniel Colascione
  0 siblings, 0 replies; 15+ messages in thread
From: Daniel Colascione @ 2012-11-20 19:05 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

On 11/20/12 11:00 AM, Glenn Morris wrote:
> It would have been better to install it to the emacs-24 branch only, and
> let it get merged to trunk "automatically". See admin/notes/bzr.

Thanks. I'll do that in the future.



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 235 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-11-20 19:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-17  3:39 document cygwin-convert-path-{from,to}-windows? Glenn Morris
2012-11-17  8:18 ` Eli Zaretskii
2012-11-18 20:35   ` Daniel Colascione
2012-11-18 21:21     ` Eli Zaretskii
2012-11-18 21:22       ` Daniel Colascione
2012-11-18 21:36         ` Eli Zaretskii
2012-11-18 21:50           ` Drew Adams
2012-11-19  1:44             ` Daniel Colascione
2012-11-19  3:36               ` Eli Zaretskii
2012-11-19  4:06               ` Stefan Monnier
2012-11-20 19:00               ` Glenn Morris
2012-11-20 19:05                 ` Daniel Colascione
2012-11-19  2:37         ` Stefan Monnier
2012-11-19  2:45           ` Daniel Colascione
2012-11-19  3:46             ` Stefan Monnier

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).