Re: [O] org-element discovered inconsistensies

2019-06-10 Thread Nicolas Goaziou
Hello, ihor writes: > I think you missed Node Properties - they are still located under > Elements on Syntax page Node properties are elements, so there is no omission there. > I have also discovered more: > > Syntax page states: > [...] > So Pragraph, Property Drawer, Sections and Headlines

Re: [O] org-element discovered inconsistensies

2019-06-08 Thread ihor
Great! Thanks, I think you missed Node Properties - they are still located under Elements on Syntax page https://orgmode.org/worg/dev/org-syntax.html#Elements https://orgmode.org/worg/dev/org-syntax.html#Node_Properties I think it should be moved to Greater Elements section And it is also l

Re: [O] org-element discovered inconsistensies

2019-06-08 Thread Nicolas Goaziou
Hello, ihor writes: > So these are things that I have discovered so far: [...] I think I fixed the issues you pointed out. Thank you. Regards, -- Nicolas Goaziou

[O] org-element discovered inconsistensies

2019-06-03 Thread ihor
So these are things that I have discovered so far:     Property Drawer:    - Element in https://orgmode.org/worg/dev/org-element-api.html#orgf47acc7 It also states that it has :properties field which is simply not there in the code https://code.orgmode.org/bzg/org-mode/src/master/

Re: [O] Org-element-put-property, bug?

2018-09-10 Thread Nicolas Goaziou
Hello, Ivan Tadeu Ferreira Antunes Filho writes: > If I put a custom property in a headline, e.g. > (org-element-put-property headline :EXPORT_FILE_NAME "a") > > Then, when accessing the org element headline it shows: :EXPORT_FILE_NAME a > > However, when I proceed to interpret the data, > (org-

[O] Org-element-put-property, bug?

2018-09-10 Thread Ivan Tadeu Ferreira Antunes Filho
If I put a custom property in a headline, e.g. (org-element-put-property headline :EXPORT_FILE_NAME "a") Then, when accessing the org element headline it shows: :EXPORT_FILE_NAME a However, when I proceed to interpret the data, (org-element-interpret-data headline) The custom property does not e

Re: [O] org-element-adopt-elements, append before children

2018-09-03 Thread Nicolas Goaziou
Hello, Ivan Tadeu Ferreira Antunes Filho writes: > Org element insert before would insert the new element before the selected > element, not as the first element child (I think) > > > At the moment I'm finding the first child, checking if it is non nil, and > if it is not nil, dolist insert befo

Re: [O] org-element-adopt-elements, append before children

2018-09-02 Thread Ivan Tadeu Ferreira Antunes Filho
Org element insert before would insert the new element before the selected element, not as the first element child (I think) At the moment I'm finding the first child, checking if it is non nil, and if it is not nil, dolist insert before the first child, else, adopt the elements. Which is a fairl

Re: [O] org-element-adopt-elements, append before children

2018-09-02 Thread Nicolas Goaziou
Hello, Ivan Tadeu Ferreira Antunes Filho writes: > At the moment org-element-adopt-elements always appends the new elements > after the elements original children. In many cases one might want to > append before the original children. > > I want to propose adding an argument to org-element-ado

[O] org-element-adopt-elements, append before children

2018-09-01 Thread Ivan Tadeu Ferreira Antunes Filho
At the moment org-element-adopt-elements always appends the new elements after the elements original children. In many cases one might want to append before the original children. I want to propose adding an argument to org-element-adopt-elements that defines if the elements should be added befo

Re: [O] org-element-at-point and special blocks

2015-12-10 Thread Nicolas Goaziou
Rasmus writes: > Out of curiosity, why is it "more" consistent to return paragraph > here? Notwithstanding this case, if `org-element-at-point' returns `special-block', you /know/ that you are either on block boundaries (#+begin_special or #+end_special) or on any affiliated keyword above, but /

Re: [O] org-element-at-point and special blocks

2015-12-10 Thread Rasmus
Hi Nicolas, Thanks for the helpful reply. Nicolas Goaziou writes: >> Is there a reason why org-element-at-point reports the type to be a >> paragraph for special blocks? E.g. in the examples at the bottom of this >> mail, where | is the cursor, the types are: export-block, src-block and >> par

Re: [O] org-element-at-point and special blocks

2015-12-09 Thread Nicolas Goaziou
Hello, Rasmus writes: > Is there a reason why org-element-at-point reports the type to be a > paragraph for special blocks? E.g. in the examples at the bottom of this > mail, where | is the cursor, the types are: export-block, src-block and > paragraph with a nested special block. This is a co

[O] org-element-at-point and special blocks

2015-12-09 Thread Rasmus
Hi, Is there a reason why org-element-at-point reports the type to be a paragraph for special blocks? E.g. in the examples at the bottom of this mail, where | is the cursor, the types are: export-block, src-block and paragraph with a nested special block. Is there a neat way to detect if point i

Re: [O] (org-element-context) :end property

2015-10-04 Thread Kyle Meyer
John Kitchin writes: > Neat! Where does one find org-link-edit.el? Is it this one: > https://github.com/kyleam/org-link-edit? It is that one, but it's also in contrib. -- Kyle

Re: [O] (org-element-context) :end property

2015-10-04 Thread John Kitchin
Neat! Where does one find org-link-edit.el? Is it this one: https://github.com/kyleam/org-link-edit? Thomas S. Dye writes: > Aloha all, > > Nicolas Goaziou writes: > >> Hello, >> >> >> White spaces following an object are included in the object. They are >> stored in :post-blank property. You

Re: [O] (org-element-context) :end property

2015-10-02 Thread Thomas S . Dye
Aloha all, Nicolas Goaziou writes: > Hello, > > > White spaces following an object are included in the object. They are > stored in :post-blank property. You can add them with > > (setf (buffer-substring start end) > (concat (or desc path) > (make-string (org-element-p

Re: [O] (org-element-context) :end property

2015-10-02 Thread Thomas S . Dye
Aloha Nicolas, Nicolas Goaziou writes: > White spaces following an object are included in the object. They are > stored in :post-blank property. You can add them with > > (setf (buffer-substring start end) > (concat (or desc path) > (make-string (org-element-property :

Re: [O] (org-element-context) :end property

2015-10-02 Thread Nicolas Goaziou
Hello, Thomas S. Dye writes: > I've started to use John Kitchin's unlinkify function, which he posted > to the list last year. > > (defun jk/unlinkify () > "Replace an org-link with the description, or if this absent, the path." > (interactive) > (let ((eop (org-element-context))) > (w

[O] (org-element-context) :end property

2015-10-02 Thread Thomas S . Dye
Aloha all, I've started to use John Kitchin's unlinkify function, which he posted to the list last year. (defun jk/unlinkify () "Replace an org-link with the description, or if this absent, the path." (interactive) (let ((eop (org-element-context))) (when (eq 'link (car eop)) (mes

Re: [O] org-element approach to modify or add ID to every headline

2015-08-14 Thread Samuel W. Flint
Grant Rettke writes: > On Sun, Aug 9, 2015 at 2:44 AM, Nicolas Goaziou > wrote: >> Anyway, the following should do: > > That works perfectly. Thank you. > > Tempted to run it in a on-save hook just to ensure that the document > *always* has IDs. At least for tangle comments. > You might try se

Re: [O] org-element approach to modify or add ID to every headline

2015-08-09 Thread Grant Rettke
On Sun, Aug 9, 2015 at 2:44 AM, Nicolas Goaziou wrote: > Anyway, the following should do: That works perfectly. Thank you. Tempted to run it in a on-save hook just to ensure that the document *always* has IDs. At least for tangle comments.

Re: [O] org-element approach to modify or add ID to every headline

2015-08-09 Thread Nicolas Goaziou
Hello, Grant Rettke writes: > Goal: > > 1) Visit every headline > 2) If there is an ID property >1) Then replace it's value with a UUID > 3) If there is not an ID property >1) Add an ID property and give it a UUID. > > `org-uuid' [provides] the functionality to add the ID with a UUID. >

[O] org-element approach to modify or add ID to every headline

2015-08-08 Thread Grant Rettke
Good evening, Emacs 24.4 and Org from Git. Goal: 1) Visit every headline 2) If there is an ID property 1) Then replace it's value with a UUID 3) If there is not an ID property 1) Add an ID property and give it a UUID. `org-uuid' [provides] the functionality to add the ID with a UUID. [Th

Re: [O] [org-element, FR] make secondary-string midnight compatible

2015-03-21 Thread Nicolas Goaziou
Hello, Rasmus writes: > As is evident from the git log, I have made the following mistake at least > twice: > >(org-element-parse-secondary-string nil restrictions) > > I wish this would just return nil instead of an error. In particular, in > ox files you have to do > >(org-element-par

[O] [org-element, FR] make secondary-string midnight compatible

2015-03-20 Thread Rasmus
Hi, As is evident from the git log, I have made the following mistake at least twice: (org-element-parse-secondary-string nil restrictions) I wish this would just return nil instead of an error. In particular, in ox files you have to do (org-element-parse-secondary-string (or whatever ""

Re: [O] (org-element-property :title ...) not returning a string

2015-03-04 Thread James Harkins
On March 4, 2015 7:18:11 PM James Harkins wrote: I've got: (defun org-scdoc-headline (headline contents info) (unless (org-element-property :footnote-section-p headline) (let* ((title (org-element-property :title headline)) (allcaps (upcase title)) ... blah blah It's chok

[O] (org-element-property :title ...) not returning a string

2015-03-04 Thread James Harkins
I've got: (defun org-scdoc-headline (headline contents info) "Transcode a HEADLINE element from Org to ASCII. CONTENTS holds the contents of the headline. INFO is a plist holding contextual information." ;; Don't export footnote section, which will be handled at the end ;; of the template.

Re: [O] org-element-at-point keep-trail?

2014-10-09 Thread Nicolas Goaziou
Jonathan Leech-Pepin writes: > Previously, org-element-at-point had an optional keep-trail variable that > was supposed to show the siblings, parents, aunts/uncles, grandparents, etc. > > This feature no longer seems to be present. > > What would the process be now to obtain the parents of a give

[O] org-element-at-point keep-trail?

2014-10-09 Thread Jonathan Leech-Pepin
Previously, org-element-at-point had an optional keep-trail variable that was supposed to show the siblings, parents, aunts/uncles, grandparents, etc. This feature no longer seems to be present. What would the process be now to obtain the parents of a given element? This would be useful for walk

Re: [O] Org-element once again

2014-10-08 Thread Eric Abrahamsen
Thorsten Jolitz writes: > Eric Abrahamsen writes: > >> Marcin Borkowski writes: >> >>> Hi list, >>> >>> does there exist any place I could find the specs of the org-element >>> data structure? From what I can see, it is a list whose car is the type >>> of the element, then a (somewhat mysterio

Re: [O] Org-element once again

2014-10-08 Thread Thorsten Jolitz
Eric Abrahamsen writes: > Marcin Borkowski writes: > >> Hi list, >> >> does there exist any place I could find the specs of the org-element >> data structure? From what I can see, it is a list whose car is the type >> of the element, then a (somewhat mysterious or me) plist follows, and >> then

Re: [O] Org-element once again

2014-10-07 Thread Eric Abrahamsen
Marcin Borkowski writes: > Hi list, > > does there exist any place I could find the specs of the org-element > data structure? From what I can see, it is a list whose car is the type > of the element, then a (somewhat mysterious or me) plist follows, and > then the children. Where could I find

[O] Org-element once again

2014-10-07 Thread Marcin Borkowski
Hi list, does there exist any place I could find the specs of the org-element data structure? From what I can see, it is a list whose car is the type of the element, then a (somewhat mysterious or me) plist follows, and then the children. Where could I find more info? If the answer is "read the

Re: [O] org-element-at-point fails in programming-modes

2014-09-23 Thread Nicolas Goaziou
Hello, Thorsten Jolitz writes: > I noticed this issue again when calling `org-element-at-point` with > point before the stars in > > , > | ** [#A] whatsup :mytag:it: > | hello world > ` > > in an emacs-lisp-mode buffer - it results in: > > , > | (paragraph (:begin 193 :end 246 :cont

Re: [O] org-element-at-point fails in programming-modes

2014-09-23 Thread Thorsten Jolitz
Nicolas Goaziou writes: > Hello, > > Thorsten Jolitz writes: > >> Ok, thanks, that sounds promising. OTOH, is the use of "\\S-" really >> mandatory, > > No, it isn't. > >> couldn't a more robust construct be used, either something >> like this (untested) regexp: >> >> , >> | "[^[:space:]\\n]

Re: [O] org-element-at-point fails in programming-modes

2014-08-22 Thread Rasmus
Nick Dokos writes: > Nick Dokos writes: > >> Sebastien Vauban >> writes: >> >>> Nick Dokos wrote: Thorsten Jolitz writes: > Thorsten Jolitz writes: > > As a side-remark, I did send these blocks with emptly lines between them, > and when I look at my post in gmane the form

Re: [O] org-element-at-point fails in programming-modes

2014-08-22 Thread Nick Dokos
Nicolas Richard writes: > Thorsten Jolitz writes: >> Maybe they switched to the new parser between versions, that parses a >> src-block with :post-blank's, but does not take them into account when >> interpreting? > > I tried an experiment : (defun org-mode (&rest _) t) and refresh. The > newli

Re: [O] org-element-at-point fails in programming-modes

2014-08-22 Thread Nicolas Richard
Nicolas Richard writes: > I would like to blame (mm-uu-dissect) but I didn't look into it. I now blame (mm-uu-dissect). The following patch fixes it, but that part of the code must be there for a reason... and I don't know what it is. Modified lisp/gnus/mm-uu.el diff --git a/lisp/gnus/

Re: [O] org-element-at-point fails in programming-modes

2014-08-22 Thread Nicolas Richard
Thorsten Jolitz writes: > Maybe they switched to the new parser between versions, that parses a > src-block with :post-blank's, but does not take them into account when > interpreting? I tried an experiment : (defun org-mode (&rest _) t) and refresh. The newlines didn't come back (but fontificat

Re: [O] org-element-at-point fails in programming-modes

2014-08-22 Thread Bastien
Nicolas Goaziou writes: > AFAIK, [:space:] is not compatible with XEmacs. FWIW, I'm less and less sure why we should worry about XEmacs compatibility. I wish some XEmacs user could step up and take care of all these XEmacs compatibility issue. -- Bastien

Re: [O] org-element-at-point fails in programming-modes

2014-08-22 Thread Nick Dokos
Thorsten Jolitz writes: > Nick Dokos writes: > >> Nick Dokos writes: >> >>> Sebastien Vauban >>> writes: >>> Nick Dokos wrote: > Thorsten Jolitz writes: >> Thorsten Jolitz writes: >> >> ... >> Am I the only one seeing this? Bug in gnus/message mode? > > I see

Re: [O] org-element-at-point fails in programming-modes

2014-08-22 Thread Nick Dokos
Nicolas Richard writes: > Nick Dokos writes: >> One machine is running Gnus v. 5.13: that one smooshes the code >> blocks together. >> >> The other is running Ma Gnus v. 0.12: that one leaves empty >> lines between blocks. > > Do they both fontify blocks ? Yes. -- Nick

Re: [O] org-element-at-point fails in programming-modes

2014-08-22 Thread Thorsten Jolitz
Nick Dokos writes: > Nick Dokos writes: > >> Sebastien Vauban >> writes: >> >>> Nick Dokos wrote: Thorsten Jolitz writes: > Thorsten Jolitz writes: > > As a side-remark, I did send these blocks with emptly lines > between them, > and when I look at my post in gmane th

Re: [O] org-element-at-point fails in programming-modes

2014-08-21 Thread Nicolas Richard
Nick Dokos writes: > One machine is running Gnus v. 5.13: that one smooshes the code > blocks together. > > The other is running Ma Gnus v. 0.12: that one leaves empty > lines between blocks. Do they both fontify blocks ? -- Nico.

Re: [O] org-element-at-point fails in programming-modes

2014-08-21 Thread Nick Dokos
Nick Dokos writes: > Sebastien Vauban > writes: > >> Nick Dokos wrote: >>> Thorsten Jolitz writes: Thorsten Jolitz writes: As a side-remark, I did send these blocks with emptly lines between them, and when I look at my post in gmane the format looks alright, however wh

Re: [O] org-element-at-point fails in programming-modes

2014-08-21 Thread Rasmus
Thorsten Jolitz writes: > Rasmus writes: > > Hi Rasmus, > >> Thorsten Jolitz writes: >> >>> As a side-remark, I did send these blocks with emptly lines between them, >>> and when I look at my post in gmane the format looks alright, however >>> when I open it in gnus the empty lines are gone and

Re: [O] org-element-at-point fails in programming-modes

2014-08-21 Thread Thorsten Jolitz
Rasmus writes: Hi Rasmus, > Thorsten Jolitz writes: > >> As a side-remark, I did send these blocks with emptly lines between them, >> and when I look at my post in gmane the format looks alright, however >> when I open it in gnus the empty lines are gone and it looks like this: > > Do you by an

Re: [O] org-element-at-point fails in programming-modes

2014-08-21 Thread Rasmus
Rasmus writes: > Thorsten Jolitz writes: > >> As a side-remark, I did send these blocks with emptly lines between them, >> and when I look at my post in gmane the format looks alright, however >> when I open it in gnus the empty lines are gone and it looks like this: > > Do you by any chance hav

Re: [O] org-element-at-point fails in programming-modes

2014-08-21 Thread Rasmus
Hi Thorsten, Thorsten Jolitz writes: > As a side-remark, I did send these blocks with emptly lines between them, > and when I look at my post in gmane the format looks alright, however > when I open it in gnus the empty lines are gone and it looks like this: Do you by any chance have `gnus-arti

Re: [O] org-element-at-point fails in programming-modes

2014-08-21 Thread Thorsten Jolitz
Nicolas Goaziou writes: > Hello, > > Thorsten Jolitz writes: > >> Ok, thanks, that sounds promising. OTOH, is the use of "\\S-" really >> mandatory, > > No, it isn't. > >> couldn't a more robust construct be used, either something >> like this (untested) regexp: >> >> , >> | "[^[:space:]\\n]

Re: [O] org-element-at-point fails in programming-modes

2014-08-21 Thread Nicolas Goaziou
Hello, Thorsten Jolitz writes: > Ok, thanks, that sounds promising. OTOH, is the use of "\\S-" really > mandatory, No, it isn't. > couldn't a more robust construct be used, either something > like this (untested) regexp: > > , > | "[^[:space:]\\n]+" > ` AFAIK, [:space:] is not compati

Re: [O] org-element-at-point fails in programming-modes

2014-08-20 Thread Nick Dokos
Sebastien Vauban writes: > Nick Dokos wrote: >> Thorsten Jolitz writes: >>> Thorsten Jolitz writes: >>> >>> As a side-remark, I did send these blocks with emptly lines between them, >>> and when I look at my post in gmane the format looks alright, however >>> when I open it in gnus the empty li

Re: [O] org-element-at-point fails in programming-modes

2014-08-20 Thread Thorsten Jolitz
Nicolas Richard writes: >> Although Org functions are of course made only for working in org-mode >> and its a bit hard to see at first sight how this could be useful, I >> wonder if the regexps could be made a bit more general to make >> `org-element-at-point' work in programming modes too (most

Re: [O] org-element-at-point fails in programming-modes

2014-08-20 Thread Sebastien Vauban
Nick Dokos wrote: > Thorsten Jolitz writes: >> Thorsten Jolitz writes: >> >> As a side-remark, I did send these blocks with emptly lines between them, >> and when I look at my post in gmane the format looks alright, however >> when I open it in gnus the empty lines are gone and it looks like this

Re: [O] org-element-at-point fails in programming-modes

2014-08-20 Thread Nicolas Richard
Thorsten Jolitz writes: > Am I the only one seeing this? Bug in gnus/message mode? I also see the problem. I suspect that it happens when Gnus fontifies the blocks. Doing "C-u g" shows that the "source" of the message is correct (i.e. has the newlines). -- Nico.

Re: [O] org-element-at-point fails in programming-modes

2014-08-20 Thread Nicolas Richard
> Although Org functions are of course made only for working in org-mode > and its a bit hard to see at first sight how this could be useful, I > wonder if the regexps could be made a bit more general to make > `org-element-at-point' work in programming modes too (most likely this > behaviour is ca

Re: [O] org-element-at-point fails in programming-modes

2014-08-20 Thread Nick Dokos
Thorsten Jolitz writes: > Thorsten Jolitz writes: > > As a side-remark, I did send these blocks with emptly lines between them, > and when I look at my post in gmane the format looks alright, however > when I open it in gnus the empty lines are gone and it looks like this: > >> * ORG SCRATCH >>

Re: [O] org-element-at-point fails in programming-modes

2014-08-20 Thread Thorsten Jolitz
Thorsten Jolitz writes: As a side-remark, I did send these blocks with emptly lines between them, and when I look at my post in gmane the format looks alright, however when I open it in gnus the empty lines are gone and it looks like this: > * ORG SCRATCH > > #+BEGIN_QUOTE > hallo world > #+END_

[O] org-element-at-point fails in programming-modes

2014-08-20 Thread Thorsten Jolitz
Hi List, with point at the beginning of each of the following blocks, `org-element-at-point' does recognize the correct type when buffer is in org-mode and other text-modes, but not so in programming modes, e.g. the *scratch* buffer (lisp-interaction-mode). Then only the src-block is recognized c

Re: [O] org-element - canonical way to parse only headline at point?

2014-07-30 Thread Thorsten Jolitz
Nicolas Goaziou writes: > Hello, > > Thorsten Jolitz writes: > >> with the new parser, how do I parse only the headline at point? There >> are ARGS in the parser/mapper functions that restrict parsing, but I >> suspect that still the whole buffer is parsed for the genealogy - right? >> >> With

Re: [O] org-element - canonical way to parse only headline at point?

2014-07-30 Thread Nicolas Goaziou
Hello, Thorsten Jolitz writes: > with the new parser, how do I parse only the headline at point? There > are ARGS in the parser/mapper functions that restrict parsing, but I > suspect that still the whole buffer is parsed for the genealogy - right? > > With my current knowledge I would either n

[O] org-element - canonical way to parse only headline at point?

2014-07-29 Thread Thorsten Jolitz
Hi List, with the new parser, how do I parse only the headline at point? There are ARGS in the parser/mapper functions that restrict parsing, but I suspect that still the whole buffer is parsed for the genealogy - right? With my current knowledge I would either narrow the buffer to the subtree

Re: [O] org-element checks make flyspell prohibitively slow

2014-03-21 Thread Matt Lundin
Hi Nicolas, Nicolas Goaziou writes: > Matt Lundin writes: > >> The rewrite of org-mode-flyspell-verify in commit >> 4a27c2b4b67201e0b23f431bdaeb6460b31e1394 (Nov 21, 2013) makes navigating >> org-mode files with large chunks of text very slow. > > [...] > >> => Org-mode version 8.2.5h (release_

Re: [O] org-element checks make flyspell prohibitively slow

2014-03-17 Thread Nicolas Goaziou
Hello, Matt Lundin writes: > The rewrite of org-mode-flyspell-verify in commit > 4a27c2b4b67201e0b23f431bdaeb6460b31e1394 (Nov 21, 2013) makes navigating > org-mode files with large chunks of text very slow. [...] > => Org-mode version 8.2.5h (release_8.2.5h-757-gc444e4 @ > /home/matt/org-mode

[O] org-element checks make flyspell prohibitively slow

2014-03-17 Thread Matt Lundin
The rewrite of org-mode-flyspell-verify in commit 4a27c2b4b67201e0b23f431bdaeb6460b31e1394 (Nov 21, 2013) makes navigating org-mode files with large chunks of text very slow. For instance, I started up a minimal emacs: /usr/bin/emacs -Q -l ~/config/minimal.el ...where minimal.el is... minimal

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-13 Thread Bastien
Hi Nicolas, Nicolas Richard writes: > Could you review this ? thanks. Applied, thanks! -- Bastien

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-10 Thread Nicolas Goaziou
Hello, Bastien writes: > Please do > > ~$ git fetch --tags > > to update all your tags, and make again. That worked. Thank you. > Tags are on commits, not on "branches", and commmits can belong to > multiple branches. > > Since the tagged commit is both on the maint and the master branch, > ma

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-08 Thread Achim Gratz
Nicolas Goaziou writes: > That is what I don't understand. You added "8.2.5h" to "maint", and > master wasn't merged into "maint" since then. How can the tag > propagate to "master"? It doesn't. But maint is included in master as an ancestor and git describe uses the most recent tag in common anc

Re: [O] org-element cache and LAST_REPEAT

2014-03-05 Thread Michael Brand
Hi Nicolas On Wed, Mar 5, 2014 at 8:11 PM, Nicolas Goaziou wrote: > This should be fixed. Thanks to both of you for reporting it. It works, thank you. Michael

Re: [O] org-element cache and LAST_REPEAT

2014-03-05 Thread Nicolas Goaziou
Hello, Michael Brand writes: > On Tue, Mar 4, 2014 at 8:58 PM, Matt Lundin wrote: >> I suspect this is related the bug I reported earlier today: >> >> http://permalink.gmane.org/gmane.emacs.orgmode/82979 > > I guess the same bug. I have overseen your report. This should be fixed. Thanks to bot

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Nicolas Richard
Bastien writes: > Hi Nicolas, > > Nicolas Richard writes: > >> OTOH, I find it a bad idea that some arguments are ignored in >> non-interactive uses, it'd be better to have a function which fully >> obeys its arguments, and has an interactive spec which sets the >> argument. If you're interested

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Bastien
Hi Nicolas, Nicolas Richard writes: > OTOH, I find it a bad idea that some arguments are ignored in > non-interactive uses, it'd be better to have a function which fully > obeys its arguments, and has an interactive spec which sets the > argument. If you're interested I can do that. Of course I

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Nicolas Richard
Bastien writes: > Daimrod writes: > >> Awww that's tricky, M-x org-version doesn't have the same behavior than >> M-: (org-version) > > That's on purpose: (org-version) is what you want to call in a > program, hence the short version, while M-x org-version RET is what > you want to call interact

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Bastien
Nicolas Goaziou writes: > I always do: > > make && org-reload > > from Eshell. That doesn't change anything. Please do ~$ git fetch --tags to update all your tags, and make again. >> I always add the release tag on maint, that's where both minor and >> major releases are made from (expect t

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Thorsten Jolitz
Bastien writes: > Daimrod writes: > >> Awww that's tricky, M-x org-version doesn't have the same behavior than >> M-: (org-version) > > That's on purpose: (org-version) is what you want to call in a > program, hence the short version, while M-x org-version RET is what > you want to call interact

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Nicolas Goaziou
Bastien writes: > Well, make sure you did a ~$ make or ~$ make autoloads so that > lisp/org-version.el is correct. I always do: make && org-reload from Eshell. That doesn't change anything. > I always add the release tag on maint, that's where both minor and > major releases are made from (

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Bastien
Daimrod writes: > Awww that's tricky, M-x org-version doesn't have the same behavior than > M-: (org-version) That's on purpose: (org-version) is what you want to call in a program, hence the short version, while M-x org-version RET is what you want to call interactively (hence the longer one.)

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Bastien
Hi Nicolas, Nicolas Goaziou writes: > Good question. I have absolutely no clue. OTOH, my tree looks > up-to-date, and my .git/config reports: > > [remote "origin"] > fetch = +refs/heads/*:refs/remotes/origin/* > url = orgm...@orgmode.org:org-mode.git >

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Daimrod
Daimrod writes: > Nicolas Goaziou writes: > >> Daimrod writes: >> >>> I had forgotten to rerun make after I pulled the latest version. >>> `org-version' now returns "8.2.5h". >> >> This is still not right. 8.2.5h refers to "maint" branch, where cache >> doesn't exist. >> >> When I compile the l

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Nicolas Goaziou
Hello, Bastien writes: > Mhh... now *I* am confused. The latest release on master is > > Org-mode version 8.2.5h (release_8.2.5h-676-gfb8a04) > > How can it be 8.2.5e for you? Good question. I have absolutely no clue. OTOH, my tree looks up-to-date, and my .git/config reports: [remo

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Daimrod
Bastien writes: > Hi Nicolas and Greg, > > Nicolas Goaziou writes: > >> Daimrod writes: >> >>> I had forgotten to rerun make after I pulled the latest version. >>> `org-version' now returns "8.2.5h". >> >> This is still not right. 8.2.5h refers to "maint" branch, where cache >> doesn't exist. >

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Daimrod
Nicolas Goaziou writes: > Daimrod writes: > >> I had forgotten to rerun make after I pulled the latest version. >> `org-version' now returns "8.2.5h". > > This is still not right. 8.2.5h refers to "maint" branch, where cache > doesn't exist. > > When I compile the latest release on "master", I g

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Jonathan Leech-Pepin
Hello Nicolas On 5 March 2014 09:25, Nicolas Goaziou wrote: > Daimrod writes: > > > I had forgotten to rerun make after I pulled the latest version. > > `org-version' now returns "8.2.5h". > > This is still not right. 8.2.5h refers to "maint" branch, where cache > doesn't exist. > > When I comp

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Bastien
Hi Nicolas and Greg, Nicolas Goaziou writes: > Daimrod writes: > >> I had forgotten to rerun make after I pulled the latest version. >> `org-version' now returns "8.2.5h". > > This is still not right. 8.2.5h refers to "maint" branch, where cache > doesn't exist. I think Greg did C-h v org-vers

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Nicolas Goaziou
Daimrod writes: > I had forgotten to rerun make after I pulled the latest version. > `org-version' now returns "8.2.5h". This is still not right. 8.2.5h refers to "maint" branch, where cache doesn't exist. When I compile the latest release on "master", I get: Org-mode version 8.2.5e (release

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Daimrod
Nicolas Goaziou writes: > Hello, > > Daimrod writes: > >> I use org-mode version release_8.0.2-101-gce5988 (I follow the git >> upstream) and I tried it with `org-element-use-cache' set to nil. > > There was no `org-element-use-cache' in Org 8.0. Could you update Org > and try again? I had forg

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Nicolas Goaziou
Hello, Daimrod writes: > I use org-mode version release_8.0.2-101-gce5988 (I follow the git > upstream) and I tried it with `org-element-use-cache' set to nil. There was no `org-element-use-cache' in Org 8.0. Could you update Org and try again? Regards, -- Nicolas Goaziou

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Daimrod
Nicolas Goaziou writes: > Hello, > > Daimrod writes: > >> I think that there is a bug in `org-element-context' because it doesn't >> seem to parse link with spaces consistently. >> >> For example: >> >> #+BEGIN_EXAMPLE >> v >> [[file:test 1 2 3]] >> ^ >> #+END_EXAMPLE >>

Re: [O] org-element-context doesn't parse consistently link with spaces

2014-03-05 Thread Nicolas Goaziou
Hello, Daimrod writes: > I think that there is a bug in `org-element-context' because it doesn't > seem to parse link with spaces consistently. > > For example: > > #+BEGIN_EXAMPLE > v > [[file:test 1 2 3]] > ^ > #+END_EXAMPLE > > If the cursor is before the '1', then `or

Re: [O] org-element cache and LAST_REPEAT

2014-03-04 Thread Michael Brand
Hi Matt On Tue, Mar 4, 2014 at 8:58 PM, Matt Lundin wrote: > I suspect this is related the bug I reported earlier today: > > http://permalink.gmane.org/gmane.emacs.orgmode/82979 I guess the same bug. I have overseen your report. Michael

Re: [O] org-element cache and LAST_REPEAT

2014-03-04 Thread Matt Lundin
Michael Brand writes: > Hi Nicolas > > With today's release_8.2.5h-676-gfb8a042 and C-c C-t on the todo > below, the last headline gets corrupted. Only when cache is enabled. Hi Michael and Nicolas, I suspect this is related the bug I reported earlier today: http://permalink.gmane.org/gmane.em

[O] org-element cache and LAST_REPEAT

2014-03-04 Thread Michael Brand
Hi Nicolas With today's release_8.2.5h-676-gfb8a042 and C-c C-t on the todo below, the last headline gets corrupted. Only when cache is enabled. -- * bla :PROPERTIES: :bla: bla :END: * TODO bla SCHEDULED: <2014-03-04 Tue +1d

[O] org-element-context doesn't parse consistently link with spaces

2014-03-04 Thread Daimrod
Hello, I think that there is a bug in `org-element-context' because it doesn't seem to parse link with spaces consistently. For example: #+BEGIN_EXAMPLE v [[file:test 1 2 3]] ^ #+END_EXAMPLE If the cursor is before the '1', then `org-element-context' will return: #+BEGIN_E

Re: [O] org-element-map no-recursion argument?

2014-01-30 Thread Nicolas Goaziou
Hello, James Harkins writes: > I've written some emacs-lisp using org-element-map to iterate over > source code blocks in an org buffer and insert them into another > buffer, including a listing number and caption (so it's different from > tangling). > > I was just trying to tweak it to ignore s

[O] org-element-map no-recursion argument?

2014-01-29 Thread James Harkins
I've written some emacs-lisp using org-element-map to iterate over source code blocks in an org buffer and insert them into another buffer, including a listing number and caption (so it's different from tangling). I was just trying to tweak it to ignore source code blocks in a comment section.

Re: [O] org-element, spurious command??

2014-01-06 Thread Nicolas Goaziou
Hello, Robert Klein writes: > I've been reading lisp/org-element.el, when I found a command lounging > around in the middle of the file outside of any defun: > > (put 'org-element-map 'lisp-indent-function 2) > > on line 4275 (maint tree this morning). > > Is this intended to be there? Yes, it

[O] org-element, spurious command??

2014-01-06 Thread Robert Klein
Hi, I've been reading lisp/org-element.el, when I found a command lounging around in the middle of the file outside of any defun: (put 'org-element-map 'lisp-indent-function 2) on line 4275 (maint tree this morning). Is this intended to be there? PS: it is also in the master tree, line 4276.

Re: [O] org-element-property syntax (turning strings into keyword symbols)

2013-11-09 Thread Matt Price
On Sat, Nov 9, 2013 at 2:48 AM, Nicolas Goaziou wrote: > Hello, > > Matt Price writes: > >> This works fine. Now when I come back to this buffer I want to check >> whether any of the properties are actually there. So I am trying >> something like this: >> >> (let ((hasprops nil)) >> (dolist p

Re: [O] org-element-property syntax (turning strings into keyword symbols)

2013-11-08 Thread Nicolas Goaziou
Hello, Matt Price writes: > This works fine. Now when I come back to this buffer I want to check > whether any of the properties are actually there. So I am trying > something like this: > > (let ((hasprops nil)) > (dolist prop org-writers-room-properties > (if (org-element-property (c

  1   2   >