Subject: Re: bug#14377: 24.3.50; patch: run a hook after `bookmark-write'

From: Eduard Wiebe <[email-masked]>
Date: Sat, 11 May 2013 21:30:24 +0200

Stefan Monnier <[email-masked]> writes:

>> I want always to export my bookmarks when bookmark file is saved.
>> Consider this simple patch.
>
> You could use
>
>   (defadvice bookmark-write-file (after export activate)
>     (do what I want))

Sure.

> Of course, we could also install something like your patch, but the hook
> functions will probably need access to the file name (which might turn into
> a lexically scoped var any time).

Ahh.., that was not clear to me. Thanks for the hint.
Please close this report.

--
Eduard Wiebe