emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fill-paragraph fills planning line; blank line possibility


From: Samuel Wales
Subject: Re: fill-paragraph fills planning line; blank line possibility
Date: Mon, 16 Mar 2020 14:15:13 -0700

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 <address@hidden> wrote:
> Hello,
>
> Samuel Wales <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]