From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hugo Schmitt" Subject: Re: Fill-paragraph and orgmode Date: Thu, 31 Jan 2008 06:49:28 -0300 Message-ID: <2f1c7d020801310149n73c0b2a4o5bbbfc6f9a64beab@mail.gmail.com> References: <2f1c7d020801280254w4d3b86eeq35abf6282fff7540@mail.gmail.com> <886B9BE3-2139-4C2E-9A4D-E234AF0F7274@science.uva.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1409903621==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKW38-0005lJ-1Y for emacs-orgmode@gnu.org; Thu, 31 Jan 2008 04:49:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKW31-0005iB-Pi for emacs-orgmode@gnu.org; Thu, 31 Jan 2008 04:49:36 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKW31-0005i0-IR for emacs-orgmode@gnu.org; Thu, 31 Jan 2008 04:49:31 -0500 Received: from wa-out-1112.google.com ([209.85.146.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKW31-0003lm-8X for emacs-orgmode@gnu.org; Thu, 31 Jan 2008 04:49:31 -0500 Received: by wa-out-1112.google.com with SMTP id k34so908102wah.10 for ; Thu, 31 Jan 2008 01:49:29 -0800 (PST) In-Reply-To: <886B9BE3-2139-4C2E-9A4D-E234AF0F7274@science.uva.nl> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org --===============1409903621== Content-Type: multipart/alternative; boundary="----=_Part_25349_23646576.1201772968594" ------=_Part_25349_23646576.1201772968594 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Carsten, Hm, almost, but i get the idea! This still fails (ok its not the same thing :) ** DONE title - State "DONE" [2008-01-16 qua 17:48] \\ words words words words words words words words after M-q on the end of 'words line' i get: ** DONE title - State "DONE" [2008-01-16 qua 17:48] \\ words words words words words words words words but i'll look into it! Thanks Hugo On Jan 31, 2008 6:16 AM, Carsten Dominik wrote: > Hi Hugo, > > you need to look at the variables paragraph-start and paragraph- > separate. > You can use org-mode-hook to change them. > I believe the following might do the trick > > > (add-hook 'org-mode-hook > (lambda () > (org-set-local 'paragraph-separate "\f\\|\\*+ \\|[ ]*$\\| > [ \t]*[:|]\\|^[ \t]+\\[[0-9]\\{4\\}-") > ;; The paragraph starter includes hand-formatted lists. > (org-set-local 'paragraph-start > "\f\\|[ ]*$\\|\\*+ \\|\f\\|[ \t]*\\([-+*][ > \t]+\\|[0-9]+[.)][ \t] > +\\)\\|[ \t]*[:|]\\|^[ \t]+\\[[0-9]\\{4\\}-"))) > > Hope this helps. > > - Carsten > > > On Jan 28, 2008, at 11:54 AM, Hugo Schmitt wrote: > > > Hi everyone. There is a little issue that I keep having with org-mode. > > Say the cursor is on <> : > > > > * TODO Title > > Words words words words words words words words words words words > > words words words words<> > > [2008-01-25 sex] > > > > After you press M-q you get this: > > > > * TODO Title > > Words words words words words words words words words words words > > words words > > words words [2008-01-25 sex] > > > > ... while what i really wanted was this: > > > > * TODO Title > > Words words words words words words words words words words words > > words words > > words words > > [2008-01-25 sex] > > > > Sure, it only takes a to fix, but anyway, if anyone has a > > solution for this, please share with me. > > > > Thanks, > > Hugo > > > > > > _______________________________________________ > > Emacs-orgmode mailing list > > Remember: use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > ------=_Part_25349_23646576.1201772968594 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Carsten,

Hm, almost, but i get the idea!
This still fails (ok its not the same thing :)

** DONE title
   - State "DONE"       [2008-01-16 qua 17:48] \\
     words words words words words words words words

after M-q on the end of 'words line' i get:

** DONE title
   - State "DONE" [2008-01-16 qua 17:48] \\ words words words words words words
     words words

but i'll look into it!

Thanks
Hugo


On Jan 31, 2008 6:16 AM, Carsten Dominik <dominik@science.uva.nl> wrote:
Hi Hugo,

you need to look at the variables paragraph-start and paragraph-
separate.
You can use org-mode-hook to change them.
I believe the following might do the trick


(add-hook 'org-mode-hook
  (lambda ()
    (org-set-local 'paragraph-separate "\f\\|\\*+ \\|[         ]*$\\|
[ \t]*[:|]\\|^[ \t]+\\[[0-9]\\{4\\}-")
    ;; The paragraph starter includes hand-formatted lists.
    (org-set-local 'paragraph-start
                  "\f\\|[      ]*$\\|\\*+ \\|\f\\|[ \t]*\\([-+*][ \t]+\\|[0-9]+[.)][ \t]
+\\)\\|[ \t]*[:|]\\|^[ \t]+\\[[0-9]\\{4\\}-")))

Hope this helps.

- Carsten


On Jan 28, 2008, at 11:54 AM, Hugo Schmitt wrote:

> Hi everyone. There is a little issue that I keep having with org-mode.
> Say the cursor is on <> :
>
> * TODO Title
>   Words words words words words words words words words words words
> words words words words<>
>   [2008-01-25 sex]
>
> After you press M-q you get this:
>
> * TODO Title
>   Words words words words words words words words words words words
> words words
>   words words [2008-01-25 sex]
>
> ... while what i really wanted was this:
>
> * TODO Title
>   Words words words words words words words words words words words
> words words
>   words words
>   [2008-01-25 sex]
>
> Sure, it only takes a <RET> to fix, but anyway, if anyone has a
> solution for this, please share with me.
>
> Thanks,
> Hugo
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


------=_Part_25349_23646576.1201772968594-- --===============1409903621== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1409903621==--