unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eduard Wiebe <usenet@pusto.de>
Cc: 14377@debbugs.gnu.org
Subject: bug#14377: 24.3.50; patch: run a hook after `bookmark-write'
Date: Fri, 10 May 2013 17:09:34 -0400	[thread overview]
Message-ID: <jwv1u9e35qd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87fvxv6gzn.fsf@pusto.de> (Eduard Wiebe's message of "Thu, 09 May 2013 22:22:20 +0200")

> 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	other threads:[~2013-05-10 21:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-09 20:22 bug#14377: 24.3.50; patch: run a hook after `bookmark-write' Eduard Wiebe
2013-05-10 21:09 ` Stefan Monnier [this message]
2013-05-11 19:30   ` Eduard Wiebe
2013-05-12  1:42     ` Glenn Morris
2013-05-12 18:01       ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv1u9e35qd.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=14377@debbugs.gnu.org \
    --cc=usenet@pusto.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).