|
From: | Paul Eggert |
Subject: | bug#60146: file-exists-in-trash-p needs better name or semantics |
Date: | Sat, 17 Dec 2022 11:57:39 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 12/17/22 00:47, Eli Zaretskii wrote:
I don't really mind renaming that function, but the reason I called it like I did was that apparently no one needed such a functionality in Emacs until now,
I have a bit of a different take. First, there's adequate functionality in Emacs now if we don't mind inefficiency, and it's already used; just call file-attributes. (Gnus does this, in nnmaildir-unlink at least, and I expect there are other uses.) Second, I wouldn't be surprised if other uses of file-exists-p have problems similar to the one you found in move-file-to-trash. Not that any of us have time to go scout for them right now.
It's a minor point. Still, the name file-exists-in-trash-p really needs to go somehow as it's not a name that should be user-visible. How about the attached patch?
0001-Remove-file-exists-in-trash-p.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |