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

[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: Stefan Monnier
Subject: bug#14377: 24.3.50; patch: run a hook after `bookmark-write'
Date: Fri, 10 May 2013 17:09:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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))

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).


        Stefan





reply via email to

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