From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Protecting comment lines from fill-paragraph Date: Fri, 24 Apr 2009 11:19:27 -0500 Message-ID: <87ocumm3cg.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LxO6T-0004ax-G8 for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 12:18:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LxO6O-0004YS-Io for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 12:18:16 -0400 Received: from [199.232.76.173] (port=44053 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LxO6O-0004Y9-AU for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 12:18:12 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:52911) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LxO6N-0005Fl-KB for emacs-orgmode@gnu.org; Fri, 24 Apr 2009 12:18:11 -0400 Received: from crunchbang (vu019215.valpo.edu [152.228.168.123]) by mail.messagingengine.com (Postfix) with ESMTPSA id F1E4E32551 for ; Fri, 24 Apr 2009 12:18:09 -0400 (EDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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