From: Michael Brand <michael.ch.brand@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org-elements: list in drawer
Date: Tue, 7 Aug 2012 21:01:32 +0200 [thread overview]
Message-ID: <CALn3zohrM2=sPLED3VYcw-euqh71LWcAgb4X__2KX=joO_oefQ@mail.gmail.com> (raw)
In-Reply-To: <87d333b15h.fsf@gmail.com>
Hi Nicolas
On Tue, Aug 7, 2012 at 9:40 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
>> ,:MYDRAWER:
>> ,- a paragraph longer than one line, a paragraph longer than one
>> line, a paragraph longer than one line
>> ,:END:
>> #+END_SRC
>
> What do you want to fill here? Theres a an item on a single line, then
> a paragraph outside the list below.
The Org source block was chosen here to show with the comma where a
line starts really in Org and where it has been wrapped by email. The
drawer contains one list with one item, on one single long line before
filling. I want to fill it into several lines, just like it happens
when “:MYDRAWER:” and “:END:” are removed before.
>> org-fill-paragraph recognizes a plain list but I think it should be a
>> paragraph, like when without the drawer. org-element-parse-buffer
>> looks to me as I would expect, org-element-at-point on the list item
>> looks wrong to me.
>
> I don't understand. What should be a paragraph?
The “paragraph” from `org-element-parse-buffer', here the excerpt of
the drawer content:
#+BEGIN_SRC emacs-lisp
(plain-list
(:type unordered :begin 32 :end 135
:contents-begin 32 :contents-end 134 :structure
((32 0 "- " nil nil nil 134))
:post-blank 1 :parent #2)
(item
(:bullet "- " :begin 32 :end 134 :contents-begin 34 :contents-end 135
:checkbox nil :counter nil :hiddenp nil :structure
((32 0 "- " nil nil nil 134))
:post-blank 1 :tag nil :parent #3)
(paragraph
(:begin 34 :end 135 :contents-begin 34 :contents-end 135
:post-blank 0 :parent #4)
"a paragraph longer [...] longer than one line\n")))
#+END_SRC
> Why does `org-element-at-point' look wrong?
The “drawer” is inside the list and I miss “item” and its “paragraph”:
#+BEGIN_SRC emacs-lisp
(plain-list
(:type unordered :begin 32 :end 135
:contents-begin 32 :contents-end 134 :structure
((32 0 "- " nil nil nil 134))
:post-blank 1 :parent
(drawer
(:begin 21 :end 141 :drawer-name "MYDRAWER" :hiddenp nil
:contents-begin 32 :contents-end 135
:post-blank 0 :parent nil))))
#+END_SRC
I thought that it should be exactly the same as the excerpt shown
above.
Michael
next prev parent reply other threads:[~2012-08-07 19:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-06 13:36 org-elements: list in drawer Michael Brand
2012-08-07 7:40 ` Nicolas Goaziou
2012-08-07 19:01 ` Michael Brand [this message]
2012-08-08 8:02 ` Nicolas Goaziou
2012-08-08 19:45 ` Michael Brand
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='CALn3zohrM2=sPLED3VYcw-euqh71LWcAgb4X__2KX=joO_oefQ@mail.gmail.com' \
--to=michael.ch.brand@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@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).