From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66076 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: Documentation of `gnus-bookmark.el' Date: Mon, 07 Jan 2008 22:59:34 +0100 Message-ID: <87odbxguux.fsf@member.fsf.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199743242 16407 80.91.229.12 (7 Jan 2008 22:00:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 22:00:42 +0000 (UTC) Cc: To: Bastien Original-X-From: ding-owner+M14569@lists.math.uh.edu Mon Jan 07 23:00:56 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1JC01R-0001lf-Jc for ding-account@gmane.org; Mon, 07 Jan 2008 23:00:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1JC00T-0001sr-Em; Mon, 07 Jan 2008 15:59:41 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1JC00R-0001sc-O1 for ding@lists.math.uh.edu; Mon, 07 Jan 2008 15:59:39 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JC00Q-0006F4-J1 for ding@lists.math.uh.edu; Mon, 07 Jan 2008 15:59:39 -0600 Original-Received: from out5.smtp.messagingengine.com ([66.111.4.29]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JC00Q-0001LH-00 for ; Mon, 07 Jan 2008 22:59:38 +0100 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 9A92C8336C; Mon, 7 Jan 2008 16:59:36 -0500 (EST) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 07 Jan 2008 16:59:36 -0500 X-Sasl-enc: i8ddA18lmSyqt1/q3DvdqQo1hJOCaKwlbbz1oQHzKOhV 1199743176 Original-Received: from baldur (dslb-084-063-053-065.pools.arcor-ip.net [84.63.53.65]) by mail.messagingengine.com (Postfix) with ESMTP id 8CAD011315; Mon, 7 Jan 2008 16:59:35 -0500 (EST) Mail-Followup-To: Bastien , In-Reply-To: (Reiner Steib's message of "Mon, 07 Jan 2008 21:26:11 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66076 Archived-At: Hi Bastien, I don't know gnus-bookmark.el, but last week I added a new abstraction to bookmark.el in emacs CVS head, that allows bookmarks to define the format of bookmarks and a handler function to open them again. If you don't use that already, I think it's worth looking at it. ,----[ C-h v bookmark-make-cell-function RET ] | bookmark-make-cell-function is a variable defined in `bookmark.el'. | Its value is | bookmark-make-cell-for-text-file | | Documentation: | A function that should be called to create the bookmark | record. Modes may set this variable buffer-locally to enable | bookmarking of non-text files like images or pdf documents. | | The function will be called with two arguments: ANNOTATION and | INFO-NODE. See `bookmark-make-cell-for-text-file' for a | description. | | The returned record may contain a special cons (handler . SOME-FUNCTION) | which sets the handler function that should be used to open this | bookmark instead of `bookmark-jump-noselect'. The handler should | return an alist like the one that function returns, and (of course) | should likewise not select the buffer. `---- The INFO-NODE parameter will go away when I find some time to implement info bookmarks using this abstraction. So it's best to use (defun my-make-cell-function (annotation &rest ignored) ...) to be on the safe side. As an example see the bookmark support of doc-view.el and image-mode.el. (doc-view-bookmark-make-cell, doc-view-bookmark-jump, image-bookmark-make-cell, image-bookmark-jump) Bye, Tassilo