Re: Re[6]: [Orgmode] programming for org-mode

2010-08-09 Thread David Maus
Ivanov Dmitry wrote: >I modified the scheme and the function. I think, that these 2 if-s >just complicate the code for comprehension: we have 3 cases, for each >of them we should return the appropriate value. Yes, `cond' is more suitable here. >All the tests work fine with the new version. >When

Re: Re[4]: [Orgmode] programming for org-mode

2010-08-08 Thread David Maus
Ivanov Dmitry wrote: >Thanks, David. I improved the scheme, added 2 question. Please, take a look. 1/ , | 09. (if (or (equal "(" (substring prop 0 1)) (equal "'" (substring prop 0 1))) | | vs. | | 09. (if (string-match "^'?(.*)$" prop) ` I wouldn't call it a flaw

Re[4]: [Orgmode] programming for org-mode

2010-08-08 Thread Ivanov Dmitry
Thanks, David. I improved the scheme, added 2 question. Please, take a look. org-collector.pdf Description: Adobe PDF document ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/m

Re[6]: [Orgmode] programming for org-mode

2010-08-08 Thread Ivanov Dmitry
I modified the scheme and the function. I think, that these 2 if-s just complicate the code for comprehension: we have 3 cases, for each of them we should return the appropriate value. Here is my variant of the function, including the fix, that you suggested: (defun org-read-prop (prop) "C

Re: Re[2]: [Orgmode] programming for org-mode

2010-08-08 Thread David Maus
Hi Ivanov, Ivanov Dmitry wrote: >Hi, Eric. I decided to draw schemes for functions in your module org-collector.el. And started from org-read-prop. Please, check my pdf file - my questions are marked with green. If there are no attachments allowed in the mailing list, you can get it here: >http:/

Re[4]: [Orgmode] programming for org-mode

2010-08-06 Thread Ivanov Dmitry
Hi, Marcelo. I used Visio. Then saved as Postscript and converted to pdf, using ps2pdf. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Re[2]: [Orgmode] programming for org-mode

2010-08-05 Thread Ivanov Dmitry
Hi, Eric. I decided to draw schemes for functions in your module org-collector.el. And started from org-read-prop. Please, check my pdf file - my questions are marked with green. If there are no attachments allowed in the mailing list, you can get it here: http://live-wtr.ru/org/org-collector.p

Re: [Orgmode] programming for org-mode

2010-07-15 Thread Nick Dokos
Eric Schulte wrote: > > I presume that paredit is useful because it's a minor mode, so you can > > enable it on an org-mode buffer (e.g. using babel). > > No, even for emacs-lisp code blocks I use C-c ' to edit the code in > emacs-lisp mode. I do have "[" and "]" globally bound to > `insert-par

Re: [Orgmode] programming for org-mode

2010-07-15 Thread Eric Schulte
Hi Nick, Nick Dokos writes: > Eric Schulte wrote: > >> ... >> If you are going to do any serious work with lisp, I would emphatically >> recommend using paredit-mode, and becoming friends with the Sexp >> movement functions >> ++ >> | C-M-f | runs th

Re: [Orgmode] programming for org-mode

2010-07-15 Thread Nick Dokos
Eric Schulte wrote: > ... > If you are going to do any serious work with lisp, I would emphatically > recommend using paredit-mode, and becoming friends with the Sexp > movement functions > ++ > | C-M-f | runs the command paredit-forward | > |---

Re: [Orgmode] programming for org-mode

2010-07-15 Thread David Maus
Ah, heck, just forgot: Casting Spells in Lisp http://www.lisperati.com/casting.html Comic book about programming in Lisp, Emacs Lisp Version available. -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpfQkHRmtNAJ.pgp Description: PGP signatur

Re: [Orgmode] programming for org-mode

2010-07-15 Thread David Maus
Eric Schulte wrote: >[1 ] >So, >The way that I learned how to program in emacs lisp was mainly using two >commands `elisp-index-search' bound to `C-h e' on my system, and most >importantly `describe-function' bound to `C-h f'. With >`describe-function' you can look at the source code of function

Re: [Orgmode] programming for org-mode

2010-07-15 Thread Eric Schulte
So, The way that I learned how to program in emacs lisp was mainly using two commands `elisp-index-search' bound to `C-h e' on my system, and most importantly `describe-function' bound to `C-h f'. With `describe-function' you can look at the source code of functions whose behavior you are familia

[Orgmode] programming for org-mode

2010-07-15 Thread Ivanov Dmitry
Hi, can anyone give me a tutorial for org-mode programming and it's API. I just read Eric Schultes module org-collector.el, but I can't understand the code: how it is organized and how to write the elisp for org-mode. Can anyone help? ___ Emacs-orgm