emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Protecting comment lines from fill-paragraph


From: Matthew Lundin
Subject: [Orgmode] Protecting comment lines from fill-paragraph
Date: Fri, 24 Apr 2009 11:19:27 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

Hi Carsten, 

Thanks to the addition your wonderful org-footnote, I increasingly use
org-mode for all my writing. And just as I do in LaTeX, I like to use
comment lines to insert notes in my text. I have a couple of questions,
however, about the behavior of comment lines in relation to
fill-paragraph.

I find that if I add a comment such as the following...

--8<---------------cut here---------------start------------->8---
Here is some text.
# Here is a comment
Here is some text.
--8<---------------cut here---------------end--------------->8---

When I invoke fill-paragraph on lines two or three, line three is folded
into the comment line, as follows:

--8<---------------cut here---------------start------------->8---
Here is some text.
# Here is a comment Here is some text.
--8<---------------cut here---------------end--------------->8---

But when I invoke fill paragraph on line one, the text stays as it is.
In other words, the comment symbol blocks filling into the preceding
line, but not the line that follows it.

The same behavior affects other comment blocks. E.g.,

--8<---------------cut here---------------start------------->8---
#+begin_quote
Here is a quote.
#+end_quote
--8<---------------cut here---------------end--------------->8---

becomes...

--8<---------------cut here---------------start------------->8---
#+begin_quote Here is a quote.
#+end_quote
--8<---------------cut here---------------end--------------->8---

In short, would it be possible to prevent lines that follow comment
lines from being folded into comment lines when fill-paragraph is
invoked. The reason I ask is because I like to place comments in
paragraphs while retaining the integrity of the paragraph for export.

Thanks in advance for considering this.
Matt







reply via email to

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