From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Citation syntax: a revised proposal Date: Fri, 27 Feb 2015 10:56:58 +0100 Message-ID: <87y4njsmmt.fsf@gmx.us> References: <87k2zjnc0e.fsf@berkeley.edu> <87bnkvm8la.fsf@berkeley.edu> <87zj8co3se.fsf@berkeley.edu> <87ioezooi2.fsf@berkeley.edu> <87mw4bpaiu.fsf@nicolasgoaziou.fr> <8761aznpiq.fsf@berkeley.edu> <87twyjnh0r.fsf@nicolasgoaziou.fr> <87oaopx24e.fsf@berkeley.edu> <87k2zd4f3w.fsf@nicolasgoaziou.fr> <87egpkv8g9.fsf@berkeley.edu> <87a908qrmm.fsf@gmx.us> <877fvba32j.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRHfR-0002jv-Dt for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 04:57:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRHfM-0000IK-El for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 04:57:09 -0500 Received: from mout.gmx.net ([212.227.17.21]:65481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRHfM-0000I2-5k for emacs-orgmode@gnu.org; Fri, 27 Feb 2015 04:57:04 -0500 In-Reply-To: (Samuel Wales's message of "Thu, 26 Feb 2015 17:56:11 -0700") 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: samologist@gmail.com Cc: emacs-orgmode@gnu.org Samuel Wales writes: >> If you don't allow a generalized link to follow a >> user-specified =CE=BBs then you don't have a flexible syntax >> that you expressed desire for above. You'd still have to >> wait for somebody "upstream" to develop [color-start:=E2=8B=AF]. > > not sure why you are talking about links. 'Cause [type/subtype: whaterver]{:key val} or [type/subtype: whaterver :key val] is like links, only meant to operate as functions, treating data. Much like links are used, making the description part rather annoying at times... > you can write color-start as a user. you can even define a > feature that requires a lambda: $[rasmus-color-start (lambda > (x) (rasmus-stuff))]. or $[rasmus-color ...]. > > but if we are going to define citations with this syntax, > then we can do so strictly. no need for lambda. Consider: [cite/color-me-pink:this will be pink] The subtype is color-me-pink. Color-me-pink is a user-written function (a =CE=BB). E.g. (add-to-cite-types "color-me-pink" (lambda (cite) (my/pink cite))) Note that this example can already be implemented via macros. > maybe you are saying that you don't think it's a good idea > to allow other first atoms. not sure why. No. I would be thrilled about that. It would be much better than links for most purposes. But it's a different issue. > also, those adjectives are up to the developers. Agreed. =E2=80=94Rasmus --=20 Hooray!