From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-exp-bibtex missing in git? Date: Thu, 07 Mar 2013 16:28:46 +0100 Message-ID: <87fw075ivl.fsf@bzg.ath.cx> References: <20130303070635.GA12112@panahar> <87fw0cg42y.fsf@allisson.co> <87vc98be83.fsf@bzg.ath.cx> <87ehfwwgdd.fsf@gmail.com> <87ppzg2r05.fsf@med.uni-goettingen.de> <87ppzgusem.fsf@gmail.com> <87ppzcfy2e.fsf@med.uni-goettingen.de> <87lia0s7wi.fsf@bzg.ath.cx> <876213lqfk.fsf@gmail.com> <87wqtjo6h6.fsf@bzg.ath.cx> <87boavcpzc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDckq-0004ly-OX for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 10:29:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDckl-0007uO-5w for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 10:29:12 -0500 Received: from mail-bk0-x233.google.com ([2a00:1450:4008:c01::233]:46085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDckk-0007uF-VO for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 10:29:07 -0500 Received: by mail-bk0-f51.google.com with SMTP id ik5so282248bkc.10 for ; Thu, 07 Mar 2013 07:29:06 -0800 (PST) In-Reply-To: <87boavcpzc.fsf@gmail.com> (Nicolas Goaziou's message of "Thu, 07 Mar 2013 14:13:27 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: aaronecay@gmail.com, Andreas Leha , emacs-orgmode@gnu.org Hi Nicolas, I like Aaron's idea (maybe others proposed this too) of having parameters in links: [[file:my.bib::key&&prenote=my prenote&&postnote=my postnote]] [[http://perdu.com&&title=You're lost?]] This is orthogonal to my proposal of extending #+LINK to be able to define new protocols (by allowing to add a follow and an export functions); and this is orthogonal to whether link abbrevs can have more than one formatting string %s. We would just need to pass the parameters as keywords to the export function, either the default one, either the defined by the protocol. E.g., the first link would be represented by the parser like this: (:type "file" :path "my.bib" :raw-link "file:orgmode.org::test2" :application nil :search-option "test2" :parameters '(:title "You're lost") :begin 63 :end 97 :contents-begin 90 :contents-end 95 :post-blank 0 :parent #3) Then org-html-link would get the parameters with (org-element-property :parameters link) => '(:title "You're lost") I think this is general and useful. If we implement this, it would be nice to extend link abbrevs to support multiple formatters in `org-link-abbrev-alist'. #+LINK: citeA file:my.bib::%s&&prenote=%s&&postnote=%s And this would spare us for the need of another object dedicated to bibliographic citations: [[citeA::key&&prenote=my note&&postnote=my note]] What do you think? -- Bastien