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[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