bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#43725: 28.0.50; Include feature/native-comp into master


From: Andrea Corallo
Subject: bug#43725: 28.0.50; Include feature/native-comp into master
Date: Sun, 14 Mar 2021 19:06:01 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> Andrea, I see in comp.c and comp.el you many times use 'concat'
> instead of expand-file-name to construct a file name from the leading
> directories and a basename.  Sometimes even a mix of the two.  Here's
> one example:
>
>   return Fexpand_file_name (filename,
>                           concat2 (Ffile_name_as_directory (base_dir),
>                                    Vcomp_native_version_dir));
>
> Is there a reason for using 'concat' in these cases?  E.g., the above
> could be written as
>
>   return Fexpand_file_name (filename
>                           Fexpand_file_name (Vcomp_native_version_dir,
>                                              base_dir));
>
> which also makes only 2 function calls instead of 3.  Am I missing
> something?

I guess is more likely that *I* missed something here :)

Probably in this case I thought that because I've used
Ffile_name_as_directory its output could just be concatenated without
having to use Fexpand_file_name.

Is this practice incorrect or dangerous?

Thanks

  Andrea





reply via email to

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