emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* fill-paragraph fills planning line; blank line possibility
@ 2020-03-16 19:25 Samuel Wales
  2020-03-16 20:33 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Wales @ 2020-03-16 19:25 UTC (permalink / raw)
  To: emacs-orgmode

recent maint -- but i have not got an mwe.  i could be doing something wrong.

* x
SCHEDULED: <2020-03-15 Sun>
mada wakaranai to omou kedo, ima no meeru wa sono koto asdfa muri ni
suru kanosei ga aru.

if i fill that using m-x fill-paragraph, it fills the planning line also.

perhaps somebody might know what i am doing wrong or if this is a bug.

also does anybody habitually put a blank line after the planning line?
 are there tools to support that?  does that even make sense?

-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

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

* Re: fill-paragraph fills planning line; blank line possibility
  2020-03-16 19:25 fill-paragraph fills planning line; blank line possibility Samuel Wales
@ 2020-03-16 20:33 ` Nicolas Goaziou
  2020-03-16 21:15   ` Samuel Wales
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2020-03-16 20:33 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hello,

Samuel Wales <samologist@gmail.com> writes:

> recent maint -- but i have not got an mwe.  i could be doing something wrong.
>
> * x
> SCHEDULED: <2020-03-15 Sun>
> mada wakaranai to omou kedo, ima no meeru wa sono koto asdfa muri ni
> suru kanosei ga aru.
>
> if i fill that using m-x fill-paragraph, it fills the planning line also.
>
> perhaps somebody might know what i am doing wrong or if this is a bug.

You are using the wrong function. It should be `org-fill-paragraph'.
`fill-paragraph' knows nothing about Org syntax. Hence the result you
are observing.

Regards,

-- 
Nicolas Goaziou

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

* Re: fill-paragraph fills planning line; blank line possibility
  2020-03-16 20:33 ` Nicolas Goaziou
@ 2020-03-16 21:15   ` Samuel Wales
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2020-03-16 21:15 UTC (permalink / raw)
  To: Samuel Wales, emacs-orgmode

thank you.

i had it wrapped as follows.  so i guess i ahve to test if i am in org
mode or use funcall on fill paragraph fucntion or something.

(define-key global-map "\M-q" 'alpha-fill-or-unfill-region-or-paragraph)
(defun alpha-fill-or-unfill-region-or-paragraph ()
  (interactive)
  (if (eq last-command this-command)
      (progn (alpha-unfill-region-or-paragraph)
             (setf this-command 'kludge))
    (alpha-fill-region-or-paragraph)))

(defun alpha-fill-region-or-paragraph ()
  (interactive)
  (if (use-region-p)
      ;; fixme i want to not deactivate the region
      (call-interactively #'fill-region)
    (fill-paragraph nil)))

On 3/16/20, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> Hello,
>
> Samuel Wales <samologist@gmail.com> writes:
>
>> recent maint -- but i have not got an mwe.  i could be doing something
>> wrong.
>>
>> * x
>> SCHEDULED: <2020-03-15 Sun>
>> mada wakaranai to omou kedo, ima no meeru wa sono koto asdfa muri ni
>> suru kanosei ga aru.
>>
>> if i fill that using m-x fill-paragraph, it fills the planning line also.
>>
>> perhaps somebody might know what i am doing wrong or if this is a bug.
>
> You are using the wrong function. It should be `org-fill-paragraph'.
> `fill-paragraph' knows nothing about Org syntax. Hence the result you
> are observing.
>
> Regards,
>
> --
> Nicolas Goaziou
>


-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

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

end of thread, other threads:[~2020-03-16 21:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-16 19:25 fill-paragraph fills planning line; blank line possibility Samuel Wales
2020-03-16 20:33 ` Nicolas Goaziou
2020-03-16 21:15   ` Samuel Wales

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).