[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18009: 24.4.50; Add hooks for `rename-file' and `delete-file'
From: |
Michael Albinus |
Subject: |
bug#18009: 24.4.50; Add hooks for `rename-file' and `delete-file' |
Date: |
Sun, 13 Jul 2014 11:46:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Andreas Schwab <schwab@linux-m68k.org> writes:
> Michael Albinus <michael.albinus@gmx.de> 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.
bug#18009: 24.4.50; Add hooks for `rename-file' and `delete-file', Stefan Monnier, 2014/07/18