emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: Samuel Wales <samologist@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: fill-paragraph fills planning line; blank line possibility
Date: Mon, 16 Mar 2020 14:15:13 -0700	[thread overview]
Message-ID: <CAJcAo8snAcNBGw51TEGq2HL3-ADXSbttPLQT6kZEXRZviM3kOg@mail.gmail.com> (raw)
In-Reply-To: <878sk0vy2z.fsf@nicolasgoaziou.fr>

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

      reply	other threads:[~2020-03-16 21:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJcAo8snAcNBGw51TEGq2HL3-ADXSbttPLQT6kZEXRZviM3kOg@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).