From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eduard Wiebe Newsgroups: gmane.emacs.bugs Subject: bug#14377: 24.3.50; patch: run a hook after `bookmark-write' Date: Sat, 11 May 2013 21:30:24 +0200 Message-ID: <8761yp2u27.fsf@pusto.de> References: <87fvxv6gzn.fsf@pusto.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368300659 32730 80.91.229.3 (11 May 2013 19:30:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 May 2013 19:30:59 +0000 (UTC) Cc: Eduard Wiebe , 14377@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 11 21:30:58 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UbFVR-0007pT-R5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2013 21:30:57 +0200 Original-Received: from localhost ([::1]:47629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbFVR-0006M8-AE for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2013 15:30:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbFVI-0006M1-HI for bug-gnu-emacs@gnu.org; Sat, 11 May 2013 15:30:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbFVF-0002ju-JS for bug-gnu-emacs@gnu.org; Sat, 11 May 2013 15:30:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbFVF-0002jq-GC for bug-gnu-emacs@gnu.org; Sat, 11 May 2013 15:30:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UbFVW-0007kO-8Y for bug-gnu-emacs@gnu.org; Sat, 11 May 2013 15:31:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87fvxv6gzn.fsf@pusto.de> Resent-From: Eduard Wiebe Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2013 19:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14377 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14377-submit@debbugs.gnu.org id=B14377.136830065229737 (code B ref 14377); Sat, 11 May 2013 19:31:02 +0000 Original-Received: (at 14377) by debbugs.gnu.org; 11 May 2013 19:30:52 +0000 Original-Received: from localhost ([127.0.0.1]:36829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbFVM-0007jU-4e for submit@debbugs.gnu.org; Sat, 11 May 2013 15:30:52 -0400 Original-Received: from wp093.webpack.hosteurope.de ([80.237.132.100]:42256) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbFVJ-0007jE-Ta for 14377@debbugs.gnu.org; Sat, 11 May 2013 15:30:51 -0400 Original-Received: from f049015211.adsl.alicedsl.de ([78.49.15.211] helo=nirvana); authenticated by wp093.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) id 1UbFV1-0003l8-17; Sat, 11 May 2013 21:30:31 +0200 Original-Received: from ew by nirvana with local (Exim 4.72) (envelope-from ) id 1UbFUv-0000kd-Mw; Sat, 11 May 2013 21:30:25 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-bounce-key: webpack.hosteurope.de;ew@pusto.de;1368300632;fa45c249; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74173 Archived-At: Stefan Monnier 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