GNU bug report logs -
#18009
24.4.50; Add hooks for `rename-file' and `delete-file'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sat, 12 Jul 2014 22:33:01 UTC
Severity: wishlist
Tags: wontfix
Found in version 24.4.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Please add a hook for each of these basic operations. It is not unusual
> to want to be able to carry out some action associated with
> (successfully) renaming or deleting a file. The hooks would be run at
> the end of the operation, and only upon success.
It's not unreasonable, but these are rather low-level operations, I'm
not sure I want to run hooks from them.
> One use case: Bookmark+ autofile bookmarks have the same name as their
> files. (There can be multiple bookmarks with the same name,
> corresponding to files with the same name in different directories.)
> With a hook it would be trivial to automatically rename or delete the
> associated bookmark.
Of course you can use an `advice' in the mean time, but maybe a better
long-term answer is the file-notification API so that your code would
know about renames not only when they're performed from the same Emacs
session but also from any other process.
Stefan
This bug report was last modified 3 years and 169 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.