[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14377: 24.3.50; patch: run a hook after `bookmark-write'
From: |
Eduard Wiebe |
Subject: |
bug#14377: 24.3.50; patch: run a hook after `bookmark-write' |
Date: |
Sat, 11 May 2013 21:30:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Stefan Monnier <monnier@IRO.UMontreal.CA> 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