Subject: Re: bug#18009: 24.4.50; Add hooks for `rename-file' and `delete-file'

From: Michael Albinus <[email-masked]>
Date: Sun, 13 Jul 2014 11:46:57 +0200

Andreas Schwab <[email-masked]> writes:

> Michael Albinus <[email-masked]> writes:
>
>> I'll still don't understand. File name handlers are intended to provide
>> a *different* implementation.
>
> Are they?

Yes. And they are invoked only when the file *name* matches a given
regexp. Drew hasn't mentioned this.

>> And even if he goes this way, he would loose existing file name
>> handlers, for example from Tramp.
>
> There is not necessarily the case.

Of course, you could write a file name handler which would reinvoke
other file name handlers afterwards. But the more natural approach would
be to advice rename-file and delete-file. 

> Andreas.

Best regards, Michael.