emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Namespaces - summary, conclusion


From: Philippe Vaucher
Subject: Re: Namespaces - summary, conclusion
Date: Mon, 4 May 2020 18:36:46 +0200

> > rename-file -> file-rename
> > delete-file -> file-delete
> > copy-file -> file-copy
> > expand-file-name -> file-expand-name
>
> These are different: in Emacs we have functions that work on _files_,
> and we have functions that work on _file names_.  The first 3 above
> are of the former kind, the last one is of the second kind (there are
> a lot more of that kind).  We shouldn't mix them.

What is commonly done in other languages for functions operating on
paths only is to be prefixed with "path-".

rename-file -> file-rename
delete-file -> file-delete
copy-file -> file-copy
expand-file-name -> path-expand

That does not solve the interesting point about the first 3 being
interactive functions. Maybe interactive warrant english-looking
conventions ("verb-object")? This complicate matters.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]