all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* file-name-directory vs file-name-as-directory / directory-file-name
@ 2007-12-09 23:08 Lennart Borgman (gmail)
  2007-12-10  2:57 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lennart Borgman (gmail) @ 2007-12-09 23:08 UTC (permalink / raw)
  To: Emacs Devel

To me it is a little bit unclear if file-name-directory returns a string 
which is consistent with file-name-as-directory or directory-file name.

Could the doc string of file-name-directory tell this, please?

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

* Re: file-name-directory vs file-name-as-directory / directory-file-name
  2007-12-09 23:08 file-name-directory vs file-name-as-directory / directory-file-name Lennart Borgman (gmail)
@ 2007-12-10  2:57 ` Stefan Monnier
  2007-12-10  7:44   ` David Kastrup
  2007-12-10  9:42 ` Andreas Schwab
  2007-12-10 15:19 ` Richard Stallman
  2 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2007-12-10  2:57 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Emacs Devel

> To me it is a little bit unclear if file-name-directory returns a string
> which is consistent with file-name-as-directory or directory-file name.

Basically, a directory name ends with a / whereas a file name does not.
So file-name-directory returns something that ends in a /.


        Stefan

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

* Re: file-name-directory vs file-name-as-directory / directory-file-name
  2007-12-10  2:57 ` Stefan Monnier
@ 2007-12-10  7:44   ` David Kastrup
  0 siblings, 0 replies; 6+ messages in thread
From: David Kastrup @ 2007-12-10  7:44 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Lennart Borgman (gmail), Emacs Devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> To me it is a little bit unclear if file-name-directory returns a string
>> which is consistent with file-name-as-directory or directory-file name.
>
> Basically, a directory name ends with a / whereas a file name does not.
> So file-name-directory returns something that ends in a /.

Unless it doesn't...  That's platform-dependent.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* Re: file-name-directory vs file-name-as-directory / directory-file-name
  2007-12-09 23:08 file-name-directory vs file-name-as-directory / directory-file-name Lennart Borgman (gmail)
  2007-12-10  2:57 ` Stefan Monnier
@ 2007-12-10  9:42 ` Andreas Schwab
  2007-12-10 15:19 ` Richard Stallman
  2 siblings, 0 replies; 6+ messages in thread
From: Andreas Schwab @ 2007-12-10  9:42 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Emacs Devel

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> To me it is a little bit unclear if file-name-directory returns a string
> which is consistent with file-name-as-directory or directory-file name.

As the names suggest, file-name-directory and file-name-as-directory
return a directory type name, and directory-file-name returns a
file-name type name.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: file-name-directory vs file-name-as-directory / directory-file-name
  2007-12-09 23:08 file-name-directory vs file-name-as-directory / directory-file-name Lennart Borgman (gmail)
  2007-12-10  2:57 ` Stefan Monnier
  2007-12-10  9:42 ` Andreas Schwab
@ 2007-12-10 15:19 ` Richard Stallman
  2007-12-10 17:30   ` Lennart Borgman (gmail)
  2 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2007-12-10 15:19 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: emacs-devel

    To me it is a little bit unclear if file-name-directory returns a string 
    which is consistent with file-name-as-directory or directory-file name.

    Could the doc string of file-name-directory tell this, please?

I will make it say "returns a directory name", which ought to make
it clear (when read with the manual).

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

* Re: file-name-directory vs file-name-as-directory / directory-file-name
  2007-12-10 15:19 ` Richard Stallman
@ 2007-12-10 17:30   ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman (gmail) @ 2007-12-10 17:30 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

Richard Stallman wrote:
>     To me it is a little bit unclear if file-name-directory returns a string 
>     which is consistent with file-name-as-directory or directory-file name.
> 
>     Could the doc string of file-name-directory tell this, please?
> 
> I will make it say "returns a directory name", which ought to make
> it clear (when read with the manual).

Thanks.

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

end of thread, other threads:[~2007-12-10 17:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-09 23:08 file-name-directory vs file-name-as-directory / directory-file-name Lennart Borgman (gmail)
2007-12-10  2:57 ` Stefan Monnier
2007-12-10  7:44   ` David Kastrup
2007-12-10  9:42 ` Andreas Schwab
2007-12-10 15:19 ` Richard Stallman
2007-12-10 17:30   ` Lennart Borgman (gmail)

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.