From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [ANN] org-dp now on MELPA Date: Sat, 06 Feb 2016 17:39:42 +0100 Message-ID: <87egcpn67l.fsf@gmail.com> References: <87y4axnbec.fsf@gmail.com> <87pow9n9ti.fsf@gmail.com> <874mdl26y6.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS5tq-0000x6-Hr for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 11:39:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS5tn-0005US-9R for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 11:39:54 -0500 Received: from plane.gmane.org ([80.91.229.3]:39674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS5tn-0005UL-2s for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 11:39:51 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aS5tk-0006U8-0d for emacs-orgmode@gnu.org; Sat, 06 Feb 2016 17:39:48 +0100 Received: from f051124140.adsl.alicedsl.de ([78.51.124.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Feb 2016 17:39:47 +0100 Received: from tjolitz by f051124140.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Feb 2016 17:39:47 +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: emacs-orgmode@gnu.org Rasmus writes: > Thorsten Jolitz writes: > >> Xebar Saram writes: >> >> Hi Xebar, >> >>> Thx Thorsten >>> >>> i still use it daily :D >> >> I did not know that I have a user actually, because when I announced >> it a year ago or so it never drew much attention (a bit to my >> surprise, I must admit). So I'm happy about the news ;-) > > It's also mentioned here, though it may be a unfair characterization > of org-dp: > > http://emacs.stackexchange.com/a/2885/1974 Thanks for advertising a bit! #+BEGIN_QUOTE org-dp is a meant to make it easer for to use "lisp representation" to create new "Org syntax representation" (as this it not a goal of org-element per se). #+END_QUOTE Its not wrong or unfair, but not what I would say either. org-element does the same thing - parse the given text, work on the internal representation, write the new text by interpreting the modified internal representation. Only that it parses the whole (maybe narrowed) buffer and has all context info, and mostly is not used to write Org syntax (but rather those of the export backends). Maybe this excerpt from the README is a better characteristic: ,---- | Library org-dp is meant for programming at the local level, | i.e. without any (contextual) information except those about the | parsed element at point. It is designed to make using the Org-mode | parser/interpreter framework at local level as convenient as using | it at the global level (with a complete parse-tree produced by | `org-element-parse-buffer` available). `---- And the 'd' in 'dp' is important, since this is a different programming style. Its more declarative (in the sense of "A program that describes what computation should be performed and not how to compute it") because the programmer 'declares' he wants a certain element type with certain parameter values at a certain place. Parsing the existing element and writing the new/modified element, the HowTo, is mostly left to the parser framework. Source code that uses org-dp looks quite different from the usual Elisp sources in Emacs/Org libraries that work on the textual representation. -- cheers, Thorsten