From 4efbd0fdd3d8f82f56d6feeeb10b0433d0564023 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 4 Feb 2025 16:06:36 +0200 Subject: [PATCH] * src/fileio.c (Fsubstitute_in_file_name): Doc fix (bug#76023). (cherry picked from commit 5c36b4126533764bb8b90413f274d766e1a6f0d6) --- src/fileio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 1832a4c7759..cdf57618af1 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2050,7 +2050,9 @@ the value of this function. If `/~' appears, all of FILENAME through that `/' is discarded. If `//' appears, everything up to and including the first of -those `/' is discarded. */) +those `/' is discarded. More generally, if a variable substitution +produces an absolute file name, everything before that file name +is discarded. */) (Lisp_Object filename) { char *nm, *p, *x, *endp; -- 2.39.5