[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
- bug#43725: 28.0.50; Include feature/native-comp into master, (continued)
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/09
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/09
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/10
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/10
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/10
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/10
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/10
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/10
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/10
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/14
- bug#43725: 28.0.50; Include feature/native-comp into master,
Andrea Corallo <=
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/14
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/14
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/15
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/15
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/15
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/15
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/20
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/20
- bug#43725: 28.0.50; Include feature/native-comp into master, Andrea Corallo, 2021/03/21
- bug#43725: 28.0.50; Include feature/native-comp into master, Eli Zaretskii, 2021/03/21