diff options
| author | Eli Zaretskii | 2025-02-06 10:42:04 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-02-06 10:42:04 +0200 |
| commit | 143f1096daa686841f1409bd63835167bb7e8aca (patch) | |
| tree | 9586895d1cbdac79b26fe83bcf26d7b1c1fc6552 /src | |
| parent | 5c36b4126533764bb8b90413f274d766e1a6f0d6 (diff) | |
| download | emacs-143f1096daa686841f1409bd63835167bb7e8aca.tar.gz emacs-143f1096daa686841f1409bd63835167bb7e8aca.zip | |
Improve documentation of 'file-name-concat'
* doc/lispref/files.texi (Directory Names):
* src/fileio.c (Ffile_name_concat): Advise not to use
'file-name-concat' unless necessary. (Bug#76023)
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index 7042dbca258..66aef91d9e7 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -847,6 +847,10 @@ Each element in COMPONENTS must be a string or nil. | |||
| 847 | DIRECTORY or the non-final elements in COMPONENTS may or may not end | 847 | DIRECTORY or the non-final elements in COMPONENTS may or may not end |
| 848 | with a slash -- if they don't end with a slash, a slash will be | 848 | with a slash -- if they don't end with a slash, a slash will be |
| 849 | inserted before concatenating. | 849 | inserted before concatenating. |
| 850 | In most cases, one or more calls to `expand-file-name' are better | ||
| 851 | suited for the job than this function. Use this function only if | ||
| 852 | some of the special expansions done by `expand-file-name' get in | ||
| 853 | the way of what your program needs to do. | ||
| 850 | usage: (file-name-concat DIRECTORY &rest COMPONENTS) */) | 854 | usage: (file-name-concat DIRECTORY &rest COMPONENTS) */) |
| 851 | (ptrdiff_t nargs, Lisp_Object *args) | 855 | (ptrdiff_t nargs, Lisp_Object *args) |
| 852 | { | 856 | { |