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

[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 <address@hidden> writes:

> Michael Albinus <address@hidden> 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.





reply via email to

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