emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Can `org-element-map' act on secondary-strings?
Date: Mon, 08 Jul 2013 19:38:50 +0530	[thread overview]
Message-ID: <87sizpf8jx.fsf@gmail.com> (raw)
In-Reply-To: <87ehb99n86.fsf@gmail.com> (Thorsten Jolitz's message of "Mon, 08 Jul 2013 15:48:25 +0200")


Thorsten Jolitz <tjolitz@gmail.com> writes:

> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>
>> You don't need `org-data' type. The tree root doesn't have any property
>> anyway.
>
> I used that because I wanted the whole parse-tree as return value, but
> no matter what `org-element-map' returns, it changes the parse-tree by
> side-effects anyway, so I can just ignore the return value and use the
> modified parse-tree stored somewhere instead - right?

I have a hard time trying to imagine what you are trying to do.  You
should try to explain to us what you are trying to accomplish.

    Why are you storing a parse-tree?

    What does the parse-tree store?

    Does the buffer of which it is a representation change, when the parse
    tree changes.

    How are you trying to "use" the parse tree?  Is it meant for one-way
    or two-way conversion - i.e., interpretation or exportation.

  reply	other threads:[~2013-07-08 14:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-06 14:38 Can `org-element-map' act on secondary-strings? Thorsten Jolitz
2013-07-06 17:14 ` Nicolas Goaziou
2013-07-08  7:16   ` Thorsten Jolitz
2013-07-08  7:39     ` Nicolas Goaziou
2013-07-08 12:06       ` Thorsten Jolitz
2013-07-08 13:00         ` Nicolas Goaziou
2013-07-08 13:48           ` Thorsten Jolitz
2013-07-08 14:08             ` Jambunathan K [this message]
2013-07-08 16:54               ` Thorsten Jolitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sizpf8jx.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tjolitz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).