emacs-devel
[Top][All Lists]
Advanced

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

Re: load-path contains directories or directory names?


From: Michael Heerdegen
Subject: Re: load-path contains directories or directory names?
Date: Sat, 24 Oct 2015 00:57:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Stephen Leake <address@hidden> writes:

> As part of the file completion code I'm working on, I need to build an
> absolute file name from a directory and a non-directory. That's either:
>
> (concat dir name)
>
> or
>
> (concat dir "/" name)

I try to avoid string operations on file names.

In the above case, using

  (expand-file-name name dir)

seems cleaner to me.  And for DIR (docstring) even "both the
directory name and a directory’s file name are accepted".


Michael.




reply via email to

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