* Fill-paragraph and orgmode
@ 2008-01-28 10:54 Hugo Schmitt
2008-01-28 11:08 ` Phil Jackson
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Hugo Schmitt @ 2008-01-28 10:54 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 673 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 810 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fill-paragraph and orgmode
2008-01-28 10:54 Fill-paragraph and orgmode Hugo Schmitt
@ 2008-01-28 11:08 ` Phil Jackson
2008-01-28 11:14 ` Hugo Schmitt
2008-01-28 18:46 ` Eddward DeVilla
2008-01-31 9:16 ` Carsten Dominik
2 siblings, 1 reply; 7+ messages in thread
From: Phil Jackson @ 2008-01-28 11:08 UTC (permalink / raw)
To: Hugo Schmitt; +Cc: emacs-orgmode
"Hugo Schmitt" <hugows@gmail.com> writes:
> 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]
I think your MUA is wrapping your text :/
Cheers,
Phil
--
Phil Jackson
http://www.shellarchive.co.uk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fill-paragraph and orgmode
2008-01-28 11:08 ` Phil Jackson
@ 2008-01-28 11:14 ` Hugo Schmitt
0 siblings, 0 replies; 7+ messages in thread
From: Hugo Schmitt @ 2008-01-28 11:14 UTC (permalink / raw)
To: Phil Jackson; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1248 bytes --]
Ooops, sorry for that. The point is that. after fill-paragraph, the date
comes to the same line that my text, ending up with something like below.
* TODO title
Text text [2008-...]
Having the date "stay" on the line below would be nicer, so if anyone knows
how to customize fill-paragraph (or org-fill-paragraph) to achieve that,
please tell me.
Thanks,
Hugo
On Jan 28, 2008 8:08 AM, Phil Jackson <phil@shellarchive.co.uk> wrote:
> "Hugo Schmitt" <hugows@gmail.com> writes:
>
> > 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]
>
> I think your MUA is wrapping your text :/
>
> Cheers,
> Phil
> --
> Phil Jackson
> http://www.shellarchive.co.uk
>
[-- Attachment #1.2: Type: text/html, Size: 1861 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fill-paragraph and orgmode
2008-01-28 10:54 Fill-paragraph and orgmode Hugo Schmitt
2008-01-28 11:08 ` Phil Jackson
@ 2008-01-28 18:46 ` Eddward DeVilla
2008-01-28 19:55 ` Phil Jackson
2008-01-31 9:16 ` Carsten Dominik
2 siblings, 1 reply; 7+ messages in thread
From: Eddward DeVilla @ 2008-01-28 18:46 UTC (permalink / raw)
To: Hugo Schmitt; +Cc: emacs-orgmode
On Jan 28, 2008 4:54 AM, Hugo Schmitt <hugows@gmail.com> wrote:
> * TODO Title
> Words words words words words words words words words words words words
> words
> words words [2008-01-25 sex]
For what it's worth, this looked right until I hit reply. About your
real problem, I don't know what the right answer is. You need a way
for wrap to know that you want the date stamp to mark the beginning of
a paragraph. The problem is that right now they can be used in the
middle of a paragraph and I believe some people (myself included) use
that.
I have a status log in each project where each entry starts with a
date stamp and I avoid this problem by making each entry a list item.
M-q handles indenting correctly then.
======================================================
* WORKING project foo
*** Status Log
- [2008-01-01] I'm starting today. The requirements are a little
confusing but I know what I have to do.
- [2008-01-02] Everything is going great. My code works exactly
how I planned.
- [2008-01-03] My tests pass. I'm done. The universe is in
harmony.
- [2008-01-04] OMFG! Dan is such a bonehead. He doesn't get how
things have to work!
- [2008-01-05] OK. I re-wrote some stuff. It's ugly but it
works. Kinda. I wish people would read the requirements!
========================================================
I don't know if this will work for you. I was doing the status log as
a list from the beginning, so the date stamp wrapping was never a
problem for me.
Edd
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fill-paragraph and orgmode
2008-01-28 18:46 ` Eddward DeVilla
@ 2008-01-28 19:55 ` Phil Jackson
0 siblings, 0 replies; 7+ messages in thread
From: Phil Jackson @ 2008-01-28 19:55 UTC (permalink / raw)
To: Eddward DeVilla; +Cc: emacs-orgmode
"Eddward DeVilla" <eddward@gmail.com> writes:
> On Jan 28, 2008 4:54 AM, Hugo Schmitt <hugows@gmail.com> wrote:
>> * TODO Title
>> Words words words words words words words words words words words words
>> words
>> words words [2008-01-25 sex]
>
> For what it's worth, this looked right until I hit reply.
You saw the text/html part I saw the text/plain part. Another reason for
HTML mail to die a painful death!
Erm...you can get back to the important stuff now. :)
--
Phil Jackson
http://www.shellarchive.co.uk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fill-paragraph and orgmode
2008-01-28 10:54 Fill-paragraph and orgmode Hugo Schmitt
2008-01-28 11:08 ` Phil Jackson
2008-01-28 18:46 ` Eddward DeVilla
@ 2008-01-31 9:16 ` Carsten Dominik
2008-01-31 9:49 ` Hugo Schmitt
2 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2008-01-31 9:16 UTC (permalink / raw)
To: Hugo Schmitt; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Fill-paragraph and orgmode
2008-01-31 9:16 ` Carsten Dominik
@ 2008-01-31 9:49 ` Hugo Schmitt
0 siblings, 0 replies; 7+ messages in thread
From: Hugo Schmitt @ 2008-01-31 9:49 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 2170 bytes --]
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
>
>
[-- Attachment #1.2: Type: text/html, Size: 3150 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-01-31 9:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 10:54 Fill-paragraph and orgmode Hugo Schmitt
2008-01-28 11:08 ` Phil Jackson
2008-01-28 11:14 ` Hugo Schmitt
2008-01-28 18:46 ` Eddward DeVilla
2008-01-28 19:55 ` Phil Jackson
2008-01-31 9:16 ` Carsten Dominik
2008-01-31 9:49 ` Hugo Schmitt
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).