emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Filling a paragraph without filling SCHEDULED line
@ 2012-04-03  5:57 Stuart McLean
  2012-04-03 16:50 ` Bernt Hansen
  2012-04-04  6:52 ` Bastien
  0 siblings, 2 replies; 6+ messages in thread
From: Stuart McLean @ 2012-04-03  5:57 UTC (permalink / raw)
  To: emacs-orgmode

Hello everyone,

I am wondering how to fill a paragraph without filling a SCHEDULED line as well.

Here is an example:

When I press `M-q', I would like 2. rather than 1.

1.
* heading 1
  SCHEDULED: <2012-04-02 Mon> foo bar baz foo bar baz foo bar baz foo
  bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz
  foo bar baz

2.
* heading 2
  SCHEDULED: <2012-04-02 Mon>
  foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar
  baz foo bar baz foo bar baz foo bar baz foo bar baz

Does anyone have any pointers as to how to achieve this?

Thanks everyone, for org-mode. It is a great community.

Stuart

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Filling a paragraph without filling SCHEDULED line
  2012-04-03  5:57 Filling a paragraph without filling SCHEDULED line Stuart McLean
@ 2012-04-03 16:50 ` Bernt Hansen
  2012-04-04  1:29   ` Stuart McLean
  2012-04-04  6:52 ` Bastien
  1 sibling, 1 reply; 6+ messages in thread
From: Bernt Hansen @ 2012-04-03 16:50 UTC (permalink / raw)
  To: Stuart McLean; +Cc: emacs-orgmode

Stuart McLean <smclean0640@gmail.com> writes:

> Hello everyone,
>
> I am wondering how to fill a paragraph without filling a SCHEDULED line as well.
>
> Here is an example:
>
> When I press `M-q', I would like 2. rather than 1.
>
> 1.
> * heading 1
>   SCHEDULED: <2012-04-02 Mon> foo bar baz foo bar baz foo bar baz foo
>   bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz
>   foo bar baz
>
> 2.
> * heading 2
>   SCHEDULED: <2012-04-02 Mon>
>   foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar
>   baz foo bar baz foo bar baz foo bar baz foo bar baz
>
> Does anyone have any pointers as to how to achieve this?
>
> Thanks everyone, for org-mode. It is a great community.

I just insert a blank line and then (optionally) remove it again so the
SCHEDULED: is by itself before filling.

HTH,
Bernt

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Filling a paragraph without filling SCHEDULED line
  2012-04-03 16:50 ` Bernt Hansen
@ 2012-04-04  1:29   ` Stuart McLean
  2012-04-04  2:26     ` Nick Dokos
  0 siblings, 1 reply; 6+ messages in thread
From: Stuart McLean @ 2012-04-04  1:29 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode

Hello Bernt,

That is what I have been doing so far. This gets annoying when you are at the
end of a hundred lines of text under a to-do item and you type M-q and have to
go back 100 lines to insert a space, re-fill and remove the space.

Thank you for your reply,

Stuart

On 4/3/12, Bernt Hansen <bernt@norang.ca> wrote:
> Stuart McLean <smclean0640@gmail.com> writes:
>
>> Hello everyone,
>>
>> I am wondering how to fill a paragraph without filling a SCHEDULED line as
>> well.
>>
>> Here is an example:
>>
>> When I press `M-q', I would like 2. rather than 1.
>>
>> 1.
>> * heading 1
>>   SCHEDULED: <2012-04-02 Mon> foo bar baz foo bar baz foo bar baz foo
>>   bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz
>>   foo bar baz
>>
>> 2.
>> * heading 2
>>   SCHEDULED: <2012-04-02 Mon>
>>   foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar
>>   baz foo bar baz foo bar baz foo bar baz foo bar baz
>>
>> Does anyone have any pointers as to how to achieve this?
>>
>> Thanks everyone, for org-mode. It is a great community.
>
> I just insert a blank line and then (optionally) remove it again so the
> SCHEDULED: is by itself before filling.
>
> HTH,
> Bernt
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Filling a paragraph without filling SCHEDULED line
  2012-04-04  1:29   ` Stuart McLean
@ 2012-04-04  2:26     ` Nick Dokos
  0 siblings, 0 replies; 6+ messages in thread
From: Nick Dokos @ 2012-04-04  2:26 UTC (permalink / raw)
  To: Stuart McLean; +Cc: Bernt Hansen, nicholas.dokos, emacs-orgmode

Stuart McLean <smclean0640@gmail.com> wrote:

> Hello Bernt,
> 
> That is what I have been doing so far. This gets annoying when you are at the
> end of a hundred lines of text under a to-do item and you type M-q and have to
> go back 100 lines to insert a space, re-fill and remove the space.
> 

C-c C-p will navigate to the previous heading, so you can mark (C-<space>),
C-c C-p, do what you have to do and C-x C-x to go back to the mark.

It's not ideal, but as a workaround, it's not too bad either.

Nick

> Thank you for your reply,
> 
> Stuart
> 
> On 4/3/12, Bernt Hansen <bernt@norang.ca> wrote:
> > Stuart McLean <smclean0640@gmail.com> writes:
> >
> >> Hello everyone,
> >>
> >> I am wondering how to fill a paragraph without filling a SCHEDULED line as
> >> well.
> >>
> >> Here is an example:
> >>
> >> When I press `M-q', I would like 2. rather than 1.
> >>
> >> 1.
> >> * heading 1
> >>   SCHEDULED: <2012-04-02 Mon> foo bar baz foo bar baz foo bar baz foo
> >>   bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz
> >>   foo bar baz
> >>
> >> 2.
> >> * heading 2
> >>   SCHEDULED: <2012-04-02 Mon>
> >>   foo bar baz foo bar baz foo bar baz foo bar baz foo bar baz foo bar
> >>   baz foo bar baz foo bar baz foo bar baz foo bar baz
> >>
> >> Does anyone have any pointers as to how to achieve this?
> >>
> >> Thanks everyone, for org-mode. It is a great community.
> >
> > I just insert a blank line and then (optionally) remove it again so the
> > SCHEDULED: is by itself before filling.
> >
> > HTH,
> > Bernt
> >
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Filling a paragraph without filling SCHEDULED line
  2012-04-03  5:57 Filling a paragraph without filling SCHEDULED line Stuart McLean
  2012-04-03 16:50 ` Bernt Hansen
@ 2012-04-04  6:52 ` Bastien
  2012-04-06  2:58   ` Stuart McLean
  1 sibling, 1 reply; 6+ messages in thread
From: Bastien @ 2012-04-04  6:52 UTC (permalink / raw)
  To: Stuart McLean; +Cc: emacs-orgmode

Hi Stuart,

Thanks for raising this issue.

I implemented an exception in `org-fill-paragraph' that takes care of
handling your case correctly.  Please test and confirm this works okay
for you.

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Filling a paragraph without filling SCHEDULED line
  2012-04-04  6:52 ` Bastien
@ 2012-04-06  2:58   ` Stuart McLean
  0 siblings, 0 replies; 6+ messages in thread
From: Stuart McLean @ 2012-04-06  2:58 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hello Bastien,

I tried out `org-fill-paragraph' and it seems to work exactly the way
I would like.
Perhaps some people would prefer to have the scheduled line filled
with the text,
but I find this way makes the scheduled line stand out, and it is
easier to delete
without having to re-fill.

Thank you so much for the fix.

All the best,

Stuart

On 4/3/12, Bastien <bzg@gnu.org> wrote:
> Hi Stuart,
>
> Thanks for raising this issue.
>
> I implemented an exception in `org-fill-paragraph' that takes care of
> handling your case correctly.  Please test and confirm this works okay
> for you.
>
> Best,
>
> --
>  Bastien
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-06  2:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-03  5:57 Filling a paragraph without filling SCHEDULED line Stuart McLean
2012-04-03 16:50 ` Bernt Hansen
2012-04-04  1:29   ` Stuart McLean
2012-04-04  2:26     ` Nick Dokos
2012-04-04  6:52 ` Bastien
2012-04-06  2:58   ` Stuart McLean

Code repositories for project(s) associated with this 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).