Re: [O] org-fill-paragraph invoked on column 0

2012-08-01 Thread Nicolas Goaziou
Hello, Michael Brand writes: > Yes, together with multi-paragraph items now I see that this would be > quite more complicated than I first thought. Also e. g. > forward-paragraph (stumbles over "- A\n- B\n\n") or > org-element-forward (different purpose) can not help here. Note that there is `o

Re: [O] org-fill-paragraph invoked on column 0

2012-08-01 Thread Michael Brand
Hi Nicolas On Wed, Aug 1, 2012 at 12:15 AM, Nicolas Goaziou wrote: >> - cmd --log-level=wrn -o DST SRC :: >> description >>for long term > > This is a very special case. Trying to handle this would change the > simple convenience patch into larger machiner

Re: [O] org-fill-paragraph invoked on column 0

2012-08-01 Thread Michael Brand
Hi Nicolas On Wed, Aug 1, 2012 at 12:42 AM, Nicolas Goaziou wrote: > It doesn't work as you expect. Try it with the following example: > > --8<---cut here---start->8--- > - line 1 > line 2 > > line 3 > line 4 > --8<---cut here---e

Re: [O] org-fill-paragraph invoked on column 0

2012-07-31 Thread Nicolas Goaziou
Hello, Michael Brand writes: > In my override my-org-fill-paragraph, improved over the one in an > earlier post I use > > #+BEGIN_SRC emacs-lisp > (save-excursion > (org-end-of-item) > (re-search-backward "[^[:space:]]") > ;; [...] > #+END_SRC > > to achieve this. It doesn't work

Re: [O] org-fill-paragraph invoked on column 0

2012-07-31 Thread Nicolas Goaziou
Hello, Michael Brand writes: > Thanks. It works except for description list. My requirement is that > it works even with unusually placed "::" which work already when point > is within the item body: > > - cmd --log-level=wrn -o DST SRC :: > description >f

Re: [O] org-fill-paragraph invoked on column 0

2012-07-31 Thread Michael Brand
Hi Nicolas On Tue, Jul 31, 2012 at 9:39 PM, Michael Brand wrote: > Thanks. It works except for description list. My requirement is that > it works even with unusually placed "::" which work already when point > is within the item body: In my override my-org-fill-paragraph, improved over the one

Re: [O] org-fill-paragraph invoked on column 0

2012-07-31 Thread Michael Brand
Hi Nicolas On Tue, Jul 31, 2012 at 8:59 PM, Nicolas Goaziou wrote: > It will probably be a common request, so I've pushed a convenience > patch: when point is at an item or a footnote definition, the function > will try to fill the first paragraph within. Thanks. It works except for description

Re: [O] org-fill-paragraph invoked on column 0

2012-07-31 Thread Nicolas Goaziou
Hello, Michael Brand writes: > Because I need to fill list items so often and when I am on column 0 > of the bullet line, I start to override M-q at least until maybe the > community decides that this old behaviour of M-q should be restored: It will probably be a common request, so I've pushed

Re: [O] org-fill-paragraph invoked on column 0

2012-07-31 Thread Michael Brand
Hi Nicolas On Mon, Jul 30, 2012 at 11:49 PM, Nicolas Goaziou wrote: > Yes. It's all about document's structure. First paragraph starts after > bullet. Before, it's the item. Since you want to fill the first > paragraph, you have to move into it. Thank you for the explanations. I appreciate your

Re: [O] org-fill-paragraph invoked on column 0

2012-07-30 Thread Nicolas Goaziou
Hello, Michael Brand writes: > I could move up and down through the lines and fill list items with > M-q also when staying on column 0. Now I have to move right at least > until the item body starts which is less comfortable for me. Is there > a reason why this should not be possible any more be

[O] org-fill-paragraph invoked on column 0

2012-07-30 Thread Michael Brand
Hi Nicolas Before commit b04f9e32680e01ef17ed813940c0c58491f0d9aa Author: Nicolas Goaziou Date: Sat Jul 28 10:24:08 2012 +0200 `org-fill-paragraph' is backed up by Org Element I could move up and down through the lines and fill list items with M-q also when staying on col