[Top][All Lists]

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

Re: file-name-as-directory: Update doc. string

From: Stefan Monnier
Subject: Re: file-name-as-directory: Update doc. string
Date: Mon, 12 Sep 2016 18:20:17 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> Yeah, it's a right sentence, but unnecessary: don't bring us any useful
> information.  You could also pass FILE, the input of
> `file-name-as-directory',
> as second argument to expand-file-name (e-f-n).
> When i read this doc, i understand that e-f-n just accepts
> directory names as the second arg, which is wrong.  That seems the case at
> the time this sentence was added, but not anymore.

As a general rule, Emacs doesn't care if a file name has a final slash
or not when the arg is known to be a directory (as is the case for the
second arg of expand-file-name).

There are some exceptions, but these are the ones that need to be
documented LOUDLY (or fixed).


reply via email to

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