From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao-Yong Jin Subject: Re: Re: Integration of Org mode and mairix Date: Sat, 04 Aug 2007 21:32:48 -0400 Message-ID: <87tzrelq9r.fsf@presario.homelinux.org> References: <87r6n6ni2j.fsf@bzg.ath.cx> <20070720160833.GD28297@atlantic.linksys.moosehall> <87k5spsw81.fsf@bzg.ath.cx> <87ejip7ud8.fsf@bzg.ath.cx> <87odht6bw2.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHV07-0002Q1-SV for emacs-orgmode@gnu.org; Sat, 04 Aug 2007 21:33:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHV00-0002Pp-Kf for emacs-orgmode@gnu.org; Sat, 04 Aug 2007 21:33:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHV00-0002Pm-De for emacs-orgmode@gnu.org; Sat, 04 Aug 2007 21:33:40 -0400 Received: from jalapeno.cc.columbia.edu ([128.59.29.5]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IHUzs-0001Cc-Nj for emacs-orgmode@gnu.org; Sat, 04 Aug 2007 21:33:33 -0400 Received: from presario.homelinux.org (dyn-carl-202-52.dyn.columbia.edu [160.39.202.52]) (user=xj2106 mech=PLAIN bits=0) by jalapeno.cc.columbia.edu (8.14.1/8.13.6) with ESMTP id l751X5Ee012629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 4 Aug 2007 21:33:09 -0400 (EDT) In-Reply-To: <87odht6bw2.fsf@bzg.ath.cx> (Bastien's message of "Mon\, 30 Jul 2007 19\:26\:37 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Bastien writes: > Maybe we could use something like `org-custom-link-types' to do the > trick: its need to know about new link-types, major modes where they > come into play and what function `org-open-at-point' calls for them. > > For example : > > (setq org-custom-link-types > '(("mairix" (gnus-summary-mode gnus-article-mode) > 'org-make-mairix-link 'org-follow-mairix-link))) > > It will make Org knowing about a new "mairix" link type. When you're in > `gnus-summary-mode' or `gnus-article-mode' this type is used instead of > the default `gnus' type. `org-make-mairix-link' is used to build the > link, and `org-follow-mairix-link' is used to open link at point. > > Am not completely sure on how this could be achieved in details, but I > believe it's a better approach to the integration of tools like mairix, > tracker and the like. > > What do you think? I think it's a very good idea. And we don't even need to restrict ourselves within index and search tools. It could be just an extension to `org-open-at-point'. When the link type is not one of the built-ins, the function uses a user customizable `alist' of link type keywords and corresponding user supplied functions. However, some kind of community contributed code base must be set up so that people like me who don't know much about elisp can grab some code which works out of box. And it would be also much easier to track api changes in the main org code. Let's see what Carsten has to say about this, when he comes back. Xiao-Yong > -- > Bastien > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- c/* __o/* <\ * (__ */\ <