emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: org-fill-paragraph invoked on column 0
Date: Wed, 01 Aug 2012 00:42:34 +0200	[thread overview]
Message-ID: <87r4rrk0x1.fsf@gmail.com> (raw)
In-Reply-To: <CALn3zojafAUyUpaXF3JWUQKVzfAAg-q_1=AX0Rja8hCQ+T+q6Q@mail.gmail.com> (Michael Brand's message of "Tue, 31 Jul 2012 22:01:00 +0200")

Hello,

Michael Brand <michael.ch.brand@gmail.com> writes:

> In my override my-org-fill-paragraph, improved over the one in an
> earlier post I use
>
> #+BEGIN_SRC emacs-lisp
>   (save-excursion
>     (org-end-of-item)
>     (re-search-backward "[^[:space:]]")
>     ;; [...]
> #+END_SRC
>
> to achieve this.

It doesn't work as you expect. Try it with the following example:

--8<---------------cut here---------------start------------->8---
- line 1
  line 2

  line 3
  line 4
--8<---------------cut here---------------end--------------->8---


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2012-07-31 22:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-30 19:52 org-fill-paragraph invoked on column 0 Michael Brand
2012-07-30 21:49 ` Nicolas Goaziou
2012-07-31 15:35   ` Michael Brand
2012-07-31 18:59     ` Nicolas Goaziou
2012-07-31 19:39       ` Michael Brand
2012-07-31 20:01         ` Michael Brand
2012-07-31 22:42           ` Nicolas Goaziou [this message]
2012-08-01 14:05             ` Michael Brand
2012-07-31 22:15         ` Nicolas Goaziou
2012-08-01 14:07           ` Michael Brand
2012-08-01 14:05             ` Nicolas Goaziou

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=87r4rrk0x1.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=michael.ch.brand@gmail.com \
    /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).