GNU bug report logs - #14377
24.3.50; patch: run a hook after `bookmark-write'

Previous Next

Package: emacs;

Reported by: Eduard Wiebe <usenet <at> pusto.de>

Date: Thu, 9 May 2013 20:33:01 UTC

Severity: wishlist

Tags: patch

Found in version 24.3.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eduard Wiebe <ew <at> pusto.de>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: Eduard Wiebe <usenet <at> pusto.de>, 14377 <at> debbugs.gnu.org
Subject: bug#14377: 24.3.50; patch: run a hook after `bookmark-write'
Date: Sat, 11 May 2013 21:30:24 +0200
Stefan Monnier <monnier <at> 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




This bug report was last modified 12 years and 15 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.