emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Protecting comment lines from fill-paragraph
@ 2009-04-24 16:19 Matthew Lundin
  2009-04-24 19:01 ` Samuel Wales
  2009-05-08  7:26 ` Carsten Dominik
  0 siblings, 2 replies; 7+ messages in thread
From: Matthew Lundin @ 2009-04-24 16:19 UTC (permalink / raw)
  To: Org Mode Mailing List

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

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

end of thread, other threads:[~2009-05-08  8:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-24 16:19 Protecting comment lines from fill-paragraph Matthew Lundin
2009-04-24 19:01 ` Samuel Wales
2009-04-24 19:45   ` Matthew Lundin
2009-04-24 19:58   ` Matthew Lundin
2009-04-28  2:34     ` Samuel Wales
2009-05-08  7:26 ` Carsten Dominik
2009-05-08  8:52   ` 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).